From 1979f18ece9fabd022156d844ca181df8f3ea340 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Sun, 11 May 2014 18:06:51 +0100 Subject: [PATCH] Trailing whitespaces removed. --- include/bx/commandline.h | 1 - include/bx/string.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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;