From 20f3ad920ecf77b24ed90e67b51d0fa405ba8423 Mon Sep 17 00:00:00 2001 From: cflakes Date: Thu, 7 Jan 2010 19:29:34 +0000 Subject: [PATCH] Some random clean-up in CFile::Delete. My first commit. Yay! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1694 726aef4b-f618-498e-8847-2d620e286838 --- FileUtils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FileUtils.cpp b/FileUtils.cpp index a70dec92..9bbe6c06 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -183,8 +183,7 @@ bool CFile::Move(const CString& sOldFileName, const CString& sNewFileName, bool return false; } - //CString sNewLongName = (sNewFileName[0] == '/') ? sNewFileName : m_sPath + "/" + sNewFileName; - return (rename(sOldFileName.c_str(), sNewFileName.c_str()) == 0) ? true : false; + return (rename(sOldFileName.c_str(), sNewFileName.c_str()) == 0); } bool CFile::Copy(const CString& sOldFileName, const CString& sNewFileName, bool bOverwrite) {