From 383a1ae79222f971bc9245d9c6f35b5db3e28c8b Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 13 Feb 2003 17:01:28 +0000 Subject: Should check if the code compiles before committing... --- lib/String.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/String.cc') diff --git a/lib/String.cc b/lib/String.cc index bcea5d2..c4fbaf9 100644 --- a/lib/String.cc +++ b/lib/String.cc @@ -159,7 +159,7 @@ const char * String::set(const ugly_string & s, ...) { return t; } -int String::scanf(const char * s, ...) { +int String::scanf(const char * s, ...) const { va_list ap; int t; @@ -169,7 +169,7 @@ int String::scanf(const char * s, ...) { return t; } -int String::scanf(const ugly_string & s, ...) { +int String::scanf(const ugly_string & s, ...) const { va_list ap; int t; @@ -209,7 +209,7 @@ String String::extract(size_t from, ssize_t to) const { } char * String::strdup(size_t from, ssize_t to) const { - return Base::strdup(extract(from, to)); + return Base::strdup(extract(from, to).str); } int String::to_int(void) const { -- cgit v1.2.3