diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-21 22:16:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:49:01 +0200 |
commit | 2a6a54dea5d5711288de67f0081da312488039d9 (patch) | |
tree | d39b8d0c3b146d7494c68ae5712bd3fa5a667939 /Userland/DevTools | |
parent | b41b6dd279154a0873ce4c6a171fdd42fb827698 (diff) | |
download | serenity-2a6a54dea5d5711288de67f0081da312488039d9.zip |
Userland: Use Core::DirIterator::next_full_path()
Simplify some code by using this instead of concatenating the full path
ourselves at the call site.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/HackStudio/Editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/Editor.cpp b/Userland/DevTools/HackStudio/Editor.cpp index 58ed61207f..474336a046 100644 --- a/Userland/DevTools/HackStudio/Editor.cpp +++ b/Userland/DevTools/HackStudio/Editor.cpp @@ -142,7 +142,7 @@ static HashMap<String, String>& man_paths() // FIXME: This should also search man3, possibly other places.. Core::DirIterator it("/usr/share/man/man2", Core::DirIterator::Flags::SkipDots); while (it.has_next()) { - auto path = String::formatted("/usr/share/man/man2/{}", it.next_path()); + auto path = it.next_full_path(); auto title = LexicalPath(path).title(); paths.set(title, path); } |