mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Force a space between if, for, while and (
This was done via:
sed -ir 's/if(/if (/g; s/for(/for (/g; s/while(/while (/g' \
*.h *.cpp modules/*.cpp
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1030 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -119,7 +119,7 @@ bool CFile::Exists(const CString& sFile) {
|
||||
|
||||
unsigned long long CFile::GetSize(const CString& sFile) {
|
||||
struct stat st;
|
||||
if(stat(sFile.c_str(), &st) != 0) {
|
||||
if (stat(sFile.c_str(), &st) != 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ int CFile::Copy(const CString& sNewFileName, bool bOverwrite) {
|
||||
}
|
||||
|
||||
bool CFile::Delete(const CString& sFileName) {
|
||||
if(!CFile::Exists(sFileName)) {
|
||||
if (!CFile::Exists(sFileName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ bool CFile::Delete(const CString& sFileName) {
|
||||
}
|
||||
|
||||
bool CFile::Move(const CString& sOldFileName, const CString& sNewFileName, bool bOverwrite) {
|
||||
if((!bOverwrite) && (CFile::Exists(sNewFileName))) {
|
||||
if ((!bOverwrite) && (CFile::Exists(sNewFileName))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ bool CFile::Move(const CString& sOldFileName, const CString& sNewFileName, bool
|
||||
}
|
||||
|
||||
bool CFile::Copy(const CString& sOldFileName, const CString& sNewFileName, bool bOverwrite) {
|
||||
if((!bOverwrite) && (CFile::Exists(sNewFileName))) {
|
||||
if ((!bOverwrite) && (CFile::Exists(sNewFileName))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -277,7 +277,7 @@ bool CFile::ReadLine(CString& sData, const CString & sDelimiter) {
|
||||
|
||||
bool bEOF = false;
|
||||
|
||||
while(true) {
|
||||
while (true) {
|
||||
CString::size_type iFind = m_sBuffer.find(sDelimiter);
|
||||
if (iFind != CString::npos) {
|
||||
sData = m_sBuffer.substr(0, (iFind + 1));
|
||||
|
||||
Reference in New Issue
Block a user