From 7e706cf64654aea466c059c307e5723e2423ed5d Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:20:50 +0200 Subject: 5.6 --- file_hierarchy.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'file_hierarchy.cpp') diff --git a/file_hierarchy.cpp b/file_hierarchy.cpp index 6f0047eb..37fd9b18 100644 --- a/file_hierarchy.cpp +++ b/file_hierarchy.cpp @@ -32,7 +32,7 @@ void HierarchyObject::removeEmptyRec() // for (auto& subDir : refSubDirs()) // subDir.removeEmptyRec(); //recurse - std::for_each(refSubDirs().begin(), refSubDirs().end(), std::mem_fun_ref(&HierarchyObject::removeEmptyRec)); + std::for_each(refSubDirs().begin(), refSubDirs().end(), [&](HierarchyObject& hierObj) { hierObj.removeEmptyRec(); }); } namespace @@ -291,8 +291,9 @@ std::wstring zen::getCategoryDescription(CompareFilesResult cmpRes) std::wstring zen::getCategoryDescription(const FileSystemObject& fsObj) { const CompareFilesResult cmpRes = fsObj.getCategory(); - if (cmpRes == FILE_CONFLICT) - return fsObj.getCatConflict(); + if (cmpRes == FILE_CONFLICT || + cmpRes == FILE_DIFFERENT_METADATA) + return fsObj.getCatExtraDescription(); return getCategoryDescription(cmpRes); } -- cgit