summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2006-07-17 16:08:44 +0000
committerpixel <pixel>2006-07-17 16:08:44 +0000
commitf7f07a91a9a033698b338b21e4a3974da4b518d9 (patch)
treee686de633fcf1217f2dd1a44baf0474408c7f73d /lib
parent6708600c340f39ecb763f905da644aafb4a0139b (diff)
Okay... let's be nice with that... for now!
Diffstat (limited to 'lib')
-rw-r--r--lib/String.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/String.cc b/lib/String.cc
index bc5739e..57fcdc3 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: String.cc,v 1.44 2006-07-16 12:24:54 pixel Exp $ */
+/* $Id: String.cc,v 1.45 2006-07-17 16:08:44 pixel Exp $ */
#include <stdio.h>
#include <string.h>
@@ -237,7 +237,7 @@ int String::scanf(const ugly_string & s, ...) const {
const char * String::to_charp(size_t from, ssize_t to) const throw (GeneralException) {
if (to < 0) {
if (from) {
- throw GeneralException("This usage of String is deprecated.");
+ //throw GeneralException("This usage of String is deprecated.");
strncpy(t, &(str[from]), BUFSIZ);
} else
return str;
@@ -260,7 +260,7 @@ const char * String::to_charp(size_t from, ssize_t to) const throw (GeneralExcep
t[0] = '\0';
}
}
- throw GeneralException("This usage of String is deprecated.");
+ //throw GeneralException("This usage of String is deprecated.");
return t;
}