squash some compiler warnings

This commit is contained in:
Ingmar Runge
2014-02-06 17:52:42 +01:00
parent 4e5a45f73e
commit b3021f913e
6 changed files with 21 additions and 19 deletions
+3 -3
View File
@@ -65,21 +65,21 @@ unsigned char* CString::strnchr(const unsigned char* src, unsigned char c, unsig
return NULL;
}
int CString::CaseCmp(const CString& s, unsigned long uLen) const {
int CString::CaseCmp(const CString& s, CString::size_type uLen) const {
if (uLen != CString::npos) {
return strncasecmp(c_str(), s.c_str(), uLen);
}
return strcasecmp(c_str(), s.c_str());
}
int CString::StrCmp(const CString& s, unsigned long uLen) const {
int CString::StrCmp(const CString& s, CString::size_type uLen) const {
if (uLen != CString::npos) {
return strncmp(c_str(), s.c_str(), uLen);
}
return strcmp(c_str(), s.c_str());
}
bool CString::Equals(const CString& s, bool bCaseSensitive, unsigned long uLen) const {
bool CString::Equals(const CString& s, bool bCaseSensitive, CString::size_type uLen) const {
if (bCaseSensitive) {
return (StrCmp(s, uLen) == 0);
} else {