diff options
author | Pixel <Pixel> | 2002-07-22 13:07:58 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-07-22 13:07:58 +0000 |
commit | 8f8105e69223b8380054275b0a04963eba79759e (patch) | |
tree | dc27aa1463e207c34dfd05ff849ce62c6ae7408d /generic/String.cpp | |
parent | 4a54a9ddca7821eb479fd3eff2fd08a2a0b979e2 (diff) |
Baltisot update
Diffstat (limited to 'generic/String.cpp')
-rw-r--r-- | generic/String.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/generic/String.cpp b/generic/String.cpp index d6a1e01..786c623 100644 --- a/generic/String.cpp +++ b/generic/String.cpp @@ -1,13 +1,9 @@ -#include <iostream.h> +#include <iostream> #include <string.h> #include <stdarg.h> #include "String.h" #include "Exceptions.h" -#ifdef HAVE_CONFIG_H #include "config.h" -#else -#define _(x) x -#endif extern "C" { double dateCalc(char *, char *); @@ -47,7 +43,6 @@ String::String(unsigned int i) { siz = ::strlen(str); } -#ifdef USE_LONGLONG String::String(long long l) { char t[40]; @@ -63,7 +58,6 @@ String::String(unsigned long long l) { str = Base::strdup(t); siz = ::strlen(str); } -#endif String::String(double d) { char t[30]; @@ -184,11 +178,11 @@ String & String::operator+=(const String & s) { return (*this); } -ostream & operator<<(ostream & os, const String & s) { +std::ostream & operator<<(std::ostream & os, const String & s) { return (os << s.to_charp()); } -istream & operator>>(istream & is, String & s) { +std::istream & operator>>(std::istream & is, String & s) { char c = 0; s.set(""); |