aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ls.cxx')
-rw-r--r--src/ls.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ls.cxx b/src/ls.cxx
index ec8ce6fbe..117c8875b 100644
--- a/src/ls.cxx
+++ b/src/ls.cxx
@@ -19,11 +19,10 @@
#include "config.h"
#include "ls.hxx"
+#include "util/StringUtil.hxx"
#include "util/UriUtil.hxx"
#include "Client.hxx"
-#include <glib.h>
-
#include <assert.h>
/**
@@ -90,7 +89,7 @@ bool uri_supported_scheme(const char *uri)
assert(uri_has_scheme(uri));
while (*urlPrefixes) {
- if (g_str_has_prefix(uri, *urlPrefixes))
+ if (StringStartsWith(uri, *urlPrefixes))
return true;
urlPrefixes++;
}