diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/String.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |