From 528cacb6122b33f73a805fbb47b4ae83a46db418 Mon Sep 17 00:00:00 2001 From: mschroffel Date: Thu, 19 Feb 2015 22:42:18 +0000 Subject: banner updates to 2015 --- src/KM_util.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/KM_util.cpp') diff --git a/src/KM_util.cpp b/src/KM_util.cpp index 8f8107f..29c3802 100755 --- a/src/KM_util.cpp +++ b/src/KM_util.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2005-2012, John Hurst +Copyright (c) 2005-2015, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -1178,18 +1178,14 @@ Kumu::km_token_split(const std::string& str, const std::string& separator) while ( r != 0 ) { assert(r >= pstr); - if ( r > pstr ) - { - std::string tmp_str; - tmp_str.assign(pstr, r - pstr); - components.push_back(tmp_str); - } - + std::string tmp_str; + tmp_str.assign(pstr, r - pstr); + components.push_back(tmp_str); pstr = r + separator.size(); r = strstr(pstr, separator.c_str()); } - if ( strlen(pstr) > 0 ) + if ( strlen(pstr) >= 0 ) { components.push_back(std::string(pstr)); } -- cgit v1.2.3