summaryrefslogtreecommitdiff
path: root/Services/SystemMenu
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-05-26 14:52:44 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-26 14:35:10 +0200
commit602c3fdb3a0975418886e32cf9cc53b45d2f8964 (patch)
tree079b3ebdaf7db517625496e35acf1158adacad77 /Services/SystemMenu
parentf746bbda174d914d5de9379084a6fb2095c58d68 (diff)
downloadserenity-602c3fdb3a0975418886e32cf9cc53b45d2f8964.zip
AK: Rename FileSystemPath -> LexicalPath
And move canonicalized_path() to a static method on LexicalPath. This is to make it clear that FileSystemPath/canonicalized_path() only perform *lexical* canonicalization.
Diffstat (limited to 'Services/SystemMenu')
-rw-r--r--Services/SystemMenu/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Services/SystemMenu/main.cpp b/Services/SystemMenu/main.cpp
index 3cf4c064db..871002e022 100644
--- a/Services/SystemMenu/main.cpp
+++ b/Services/SystemMenu/main.cpp
@@ -25,7 +25,7 @@
*/
#include "ShutdownDialog.h"
-#include <AK/FileSystemPath.h>
+#include <AK/LexicalPath.h>
#include <AK/QuickSort.h>
#include <LibCore/ConfigFile.h>
#include <LibCore/DirIterator.h>
@@ -171,7 +171,7 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
while (dt.has_next()) {
auto theme_name = dt.next_path();
auto theme_path = String::format("/res/themes/%s", theme_name.characters());
- g_themes.append({ FileSystemPath(theme_name).title(), theme_path });
+ g_themes.append({ LexicalPath(theme_name).title(), theme_path });
}
quick_sort(g_themes, [](auto& a, auto& b) { return a.name < b.name; });
}