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
This commit is contained in:
cflakes
2010-01-07 19:29:34 +00:00
parent 07d7477dec
commit 20f3ad920e

View File

@@ -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) {