From f495acd11084fc7ca8abc354b03820fdb0205a1e Mon Sep 17 00:00:00 2001 From: psychon Date: Fri, 8 Feb 2008 16:20:20 +0000 Subject: [PATCH] Make CFile::Delete() return a bool (true for success) The static version of CFile::Delete() already does so. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@946 726aef4b-f618-498e-8847-2d620e286838 --- FileUtils.cpp | 2 +- FileUtils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FileUtils.cpp b/FileUtils.cpp index a64f76b9..6285a275 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -156,7 +156,7 @@ int CFile::GetInfo(const CString& sFile, struct stat& st) { // // Functions to manipulate the file on the filesystem // -int CFile::Delete() { return CFile::Delete(m_sLongName); } +bool CFile::Delete() { return CFile::Delete(m_sLongName); } int CFile::Move(const CString& sNewFileName, bool bOverwrite) { return CFile::Move(m_sLongName, sNewFileName, bOverwrite); } diff --git a/FileUtils.h b/FileUtils.h index a91a5da1..802632e3 100644 --- a/FileUtils.h +++ b/FileUtils.h @@ -97,7 +97,7 @@ public: // // Functions to manipulate the file on the filesystem // - int Delete(); + bool Delete(); int Move(const CString& sNewFileName, bool bOverwrite = false); int Copy(const CString& sNewFileName, bool bOverwrite = false);