diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/parameters.cpp (renamed from src/utils/paramerers.cpp) | 9 | ||||
-rw-r--r-- | src/utils/parameters.h (renamed from src/utils/paramerers.h) | 0 | ||||
-rw-r--r-- | src/utils/parameters_unittest.cc (renamed from src/utils/paramerers_unittest.cc) | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/src/utils/paramerers.cpp b/src/utils/parameters.cpp index aa3ae350f..467c31553 100644 --- a/src/utils/paramerers.cpp +++ b/src/utils/parameters.cpp @@ -18,14 +18,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "utils/paramerers.h" - -#include "logger.h" +#include "utils/parameters.h" #include "utils/stringutils.h" -#include <sstream> - #include "debug.h" static inline void addToken(StringVect &tokens, @@ -94,7 +90,7 @@ static inline size_t findNextSplit(const std::string &str, idx2 = findNextQuote(str, quote, idx2 + 1); if (idx2 == std::string::npos) return std::string::npos; // no close quote, here error - // searching next + // set position for next separator or quote pos = idx2 + 1; } else @@ -102,7 +98,6 @@ static inline size_t findNextSplit(const std::string &str, return idx1; } } - return idx1; } bool splitParameters(StringVect &tokens, diff --git a/src/utils/paramerers.h b/src/utils/parameters.h index d93f7a207..d93f7a207 100644 --- a/src/utils/paramerers.h +++ b/src/utils/parameters.h diff --git a/src/utils/paramerers_unittest.cc b/src/utils/parameters_unittest.cc index fbccef0e1..f1c4557ee 100644 --- a/src/utils/paramerers_unittest.cc +++ b/src/utils/parameters_unittest.cc @@ -20,7 +20,7 @@ #include "catch.hpp" -#include "utils/paramerers.h" +#include "utils/parameters.h" #include "debug.h" |