summaryrefslogtreecommitdiff
path: root/Userland/basename.cpp
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 /Userland/basename.cpp
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 'Userland/basename.cpp')
-rw-r--r--Userland/basename.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/basename.cpp b/Userland/basename.cpp
index 7efbe2efe0..2d211340f0 100644
--- a/Userland/basename.cpp
+++ b/Userland/basename.cpp
@@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <AK/FileSystemPath.h>
+#include <AK/LexicalPath.h>
#include <stdio.h>
int main(int argc, char** argv)
@@ -38,6 +38,6 @@ int main(int argc, char** argv)
printf("usage: basename <path>\n");
return 1;
}
- printf("%s\n", FileSystemPath(argv[1]).basename().characters());
+ printf("%s\n", LexicalPath(argv[1]).basename().characters());
return 0;
}