summaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorPixel <Pixel>2002-09-09 14:50:25 +0000
committerPixel <Pixel>2002-09-09 14:50:25 +0000
commit259110b90336240ce6cdde0201d05ce03a1f73fe (patch)
treeea54441ee6afaadb62bfc64f14d2ea9ca2fe3027 /generic
parentd9be6ee955a92618bcfc8c8e1f10ca82a9f51634 (diff)
Doh
Diffstat (limited to 'generic')
-rw-r--r--generic/String.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/String.cpp b/generic/String.cpp
index 22d77d6..24961c5 100644
--- a/generic/String.cpp
+++ b/generic/String.cpp
@@ -27,17 +27,20 @@ String::String(char c) : siz(1) {
str = t;
}
+#if 0
String::String(const char * s) : str(Base::strdup(s)), siz(::strlen(str)) {
#ifdef DEBUG
fprintf(stderr, "Creating a string with `%s' at %p\n", str, str);
#endif
}
+#endif
-#if 0
String::String(const char * s, ...) {
va_list ap;
+#ifdef DEBUG
fprintf(stderr, "Creating a String with s = '%s'\n", s);
+#endif
/* This causes a warning: cannot pass objects of type `const String' through `...'
but it is not really a problem. */
@@ -47,7 +50,6 @@ String::String(const char * s, ...) {
va_end(ap);
siz = ::strlen(str);
}
-#endif
String::String(int hs, const char * s) : str(s ? Base::strdup(s) : Base::strdup("")), siz(hs) { }