diff options
-rw-r--r-- | lib/String.cc | 6 |
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; } |