Fixed MString and MFile.
This commit is contained in:
1 parent
11d6f00bfb
commit
829dc1a3c7
12 files changed
+65
-22
No files matched your search
+11
-4
@@ -117,11 +117,18 @@ namespace coreutils {
|
||||
}
|
||||
|
||||
bool ZString::operator!=(const char *valuex) const {
|
||||
if(strlen(valuex) != length)
|
||||
return true;
|
||||
return (strncmp(data, valuex, length) != 0);
|
||||
if(valuex == NULL) {
|
||||
if(length == 0)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
} else {
|
||||
if(strlen(valuex) != length)
|
||||
return true;
|
||||
return (strncmp(data, valuex, length) != 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
std::vector<ZString> &ZString::getList() {
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user