From 58fe352fdaff93737d067a0cb90d83ebd5cbe180 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 18 Oct 2013 12:24:09 +0200 Subject: util/StringUtil: rename strchug_fast_c() to strchug_fast() Overload the name. --- src/util/StringUtil.hxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/util/StringUtil.hxx') 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(strchug_fast_c(p)); + return const_cast(strchug_fast((const char *)p)); } /** -- cgit v1.2.3