summaryrefslogtreecommitdiff
path: root/lib/String.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-02-13 17:01:28 +0000
committerpixel <pixel>2003-02-13 17:01:28 +0000
commit383a1ae79222f971bc9245d9c6f35b5db3e28c8b (patch)
tree4647f9b48f64e691a01d464c42ad082139cb0821 /lib/String.cc
parent7b7a18a92ff1e47d1e742874ed2fcfa898ec03f0 (diff)
Should check if the code compiles before committing...
Diffstat (limited to 'lib/String.cc')
-rw-r--r--lib/String.cc6
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 {