summaryrefslogtreecommitdiff
path: root/ui/sorting.h
diff options
context:
space:
mode:
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