diff --git a/include/bx/commandline.h b/include/bx/commandline.h index 8385de7..36d1ebb 100644 --- a/include/bx/commandline.h +++ b/include/bx/commandline.h @@ -111,7 +111,6 @@ namespace bx return false; } - bool hasArg(bool& _value, const char _short, const char* _long = NULL) const { const char* arg = findOption(_short, _long, 1); diff --git a/include/bx/string.h b/include/bx/string.h index c8e5a6e..383ac28 100644 --- a/include/bx/string.h +++ b/include/bx/string.h @@ -52,7 +52,7 @@ namespace bx const char* cmp = _find + 1; size_t len = strlen(cmp); - do + do { for (char match = *_str++; match != first && 0 < _size; match = *_str++, --_size) { @@ -66,7 +66,7 @@ namespace bx { return NULL; } - + } while (0 != strncmp(_str, cmp, len) ); return --_str;