diff options
| author | mschroffel <mschroffel@cinecert.com> | 2015-02-19 22:42:18 +0000 |
|---|---|---|
| committer | mschroffel <> | 2015-02-19 22:42:18 +0000 |
| commit | 528cacb6122b33f73a805fbb47b4ae83a46db418 (patch) | |
| tree | ad68a5c66b827dba27ed0d84c54735aa5dee0569 /src/KM_fileio.cpp | |
| parent | 665b2e2e5dcf2266e636d29bcf4ef281da65117f (diff) | |
banner updates to 2015
Diffstat (limited to 'src/KM_fileio.cpp')
| -rw-r--r-- | src/KM_fileio.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp index a7de3c2..5149d35 100644 --- a/src/KM_fileio.cpp +++ b/src/KM_fileio.cpp @@ -235,12 +235,22 @@ Kumu::PathsAreEquivalent(const std::string& lhs, const std::string& rhs) // Kumu::PathCompList_t& -Kumu::PathToComponents(const std::string& Path, PathCompList_t& CList, char separator) +Kumu::PathToComponents(const std::string& path, PathCompList_t& component_list, char separator) { std::string s; s = separator; - CList = km_token_split(Path, s); - return CList; + PathCompList_t tmp_list = km_token_split(path, std::string(s)); + PathCompList_t::const_iterator i; + + for ( i = tmp_list.begin(); i != tmp_list.end(); ++i ) + { + if ( ! i->empty() ) + { + component_list.push_back(*i); + } + } + + return component_list; } // |
