From 6fa92db26529c1c06ae1f0e201213b99bb1174c2 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Tue, 21 Aug 2012 23:36:37 +0200 Subject: [PATCH] fixup! Prune redundant items from SCM data source --- Frameworks/OakFileBrowser/src/io/FSSCMDataSource.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/OakFileBrowser/src/io/FSSCMDataSource.mm b/Frameworks/OakFileBrowser/src/io/FSSCMDataSource.mm index f4b23a4a..4a4b04c0 100644 --- a/Frameworks/OakFileBrowser/src/io/FSSCMDataSource.mm +++ b/Frameworks/OakFileBrowser/src/io/FSSCMDataSource.mm @@ -54,10 +54,10 @@ _Iter prune_path_children (_Iter it, _Iter last) { _Iter out = it; std::sort(it, last); - for(std::string parent = NULL_STR; it != last; parent = *it++) + for(std::string parent = NULL_STR; it != last; ++it) { if(it->size() <= parent.size() || it->at(parent.size()) != '/' || it->find(parent) != 0) - *out++ = *it; + *out++ = parent = *it; } return out; }