From f7f07a91a9a033698b338b21e4a3974da4b518d9 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 17 Jul 2006 16:08:44 +0000 Subject: Okay... let's be nice with that... for now! --- lib/String.cc | 6 +++--- 1 file 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 #include @@ -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; } -- cgit v1.2.3