aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/StringUtil.cxx2
-rw-r--r--src/util/StringUtil.hxx7
2 files changed, 3 insertions, 6 deletions
diff --git a/src/util/StringUtil.cxx b/src/util/StringUtil.cxx
index 87d032735..26aa7825e 100644
--- a/src/util/StringUtil.cxx
+++ b/src/util/StringUtil.cxx
@@ -24,7 +24,7 @@
#include <assert.h>
const char *
-strchug_fast_c(const char *p)
+strchug_fast(const char *p)
{
while (*p != 0 && g_ascii_isspace(*p))
++p;
diff --git a/src/util/StringUtil.hxx b/src/util/StringUtil.hxx
index dc3e101b3..1c67910a9 100644
--- a/src/util/StringUtil.hxx
+++ b/src/util/StringUtil.hxx
@@ -31,16 +31,13 @@
*/
gcc_pure
const char *
-strchug_fast_c(const char *p);
+strchug_fast(const char *p);
-/**
- * Same as strchug_fast_c(), but works with a writable pointer.
- */
gcc_pure
static inline char *
strchug_fast(char *p)
{
- return const_cast<char *>(strchug_fast_c(p));
+ return const_cast<char *>(strchug_fast((const char *)p));
}
/**