summaryrefslogtreecommitdiff
path: root/ui/sorting.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:42 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:42 +0200
commitc32707148292d104c66276b43796d6057c8c7a5d (patch)
treebb83513f4aff24153e21a4ec92e34e4c27651b1f /ui/sorting.h
parent3.9 (diff)
downloadFreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.gz
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.bz2
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.zip
3.10
Diffstat (limited to 'ui/sorting.h')
-rw-r--r--ui/sorting.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/sorting.h b/ui/sorting.h
index 94ac6f6d..305cb916 100644
--- a/ui/sorting.h
+++ b/ui/sorting.h
@@ -92,12 +92,12 @@ bool sortByRelativeName(const FileSystemObject& a, const FileSystemObject& b)
return true; //empty rows always last
const bool isDirectoryA = isDirectoryMapping(a);
- const Zstring relDirNameA = isDirectoryA ?
+ const Zstring& relDirNameA = isDirectoryA ?
a.getRelativeName<side>() : //directory
a.getParentRelativeName(); //file or symlink
const bool isDirectoryB = isDirectoryMapping(b);
- const Zstring relDirNameB = isDirectoryB ?
+ const Zstring& relDirNameB = isDirectoryB ?
b.getRelativeName<side>() : //directory
b.getParentRelativeName(); //file or symlink
bgstack15