summaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
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) { }