mirror of
https://github.com/znc/znc.git
synced 2026-05-02 03:22:33 +02:00
Use CString::Equals() everywhere.
* (CString::CaseCmp() == 0) became CString::Equals() * (CString::CaseCmp() != 0) became !CString::Equals() * replaced some occurrences of strn?casecmp git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1234 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -260,9 +260,9 @@ bool CUtils::GetBoolInput(const CString& sPrompt, bool *pbDefault) {
|
||||
|
||||
GetInput(sPrompt, sRet, sDefault, "yes/no");
|
||||
|
||||
if (sRet.CaseCmp("yes") == 0) {
|
||||
if (sRet.Equals("yes")) {
|
||||
return true;
|
||||
} else if (sRet.CaseCmp("no") == 0) {
|
||||
} else if (sRet.Equals("no")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -403,7 +403,7 @@ void CUtils::PrintStatus(bool bSuccess, const CString& sMessage) {
|
||||
|
||||
bool CTable::AddColumn(const CString& sName) {
|
||||
for (unsigned int a = 0; a < m_vsHeaders.size(); a++) {
|
||||
if (m_vsHeaders[a].CaseCmp(sName) == 0) {
|
||||
if (m_vsHeaders[a].Equals(sName)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user