diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 04:09:35 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 04:09:35 +0000 |
commit | 61147de3c6f2485aa198c8637bae9933d8ba18cc (patch) | |
tree | 615516fc0fc7f1394362500f76d658fc83bc8082 /soltools/support | |
parent | 50db9ddbe2fafd61397204a81c5f9ce9f60f274c (diff) |
INTEGRATION: CWS warnings01 (1.2.4); FILE MERGED
2005/11/07 12:08:33 sb 1.2.4.1: #i53898# Made code warning-free (additional -W switches for GCC).
Diffstat (limited to 'soltools/support')
-rw-r--r-- | soltools/support/simstr.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/soltools/support/simstr.cxx b/soltools/support/simstr.cxx index 049721e19610..5685f6e3af0a 100644 --- a/soltools/support/simstr.cxx +++ b/soltools/support/simstr.cxx @@ -4,9 +4,9 @@ * * $RCSfile: simstr.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2005-09-08 07:29:49 $ + * last change: $Author: hr $ $Date: 2006-06-20 05:09:35 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -44,9 +44,9 @@ const char NULCH = '\0'; const int NO_POS = -1; -Simstr::Simstr(const char * str) +Simstr::Simstr(const char * s_) { - if (str == 0) + if (s_ == 0) { len = 0; sz = new char[1]; @@ -54,9 +54,9 @@ Simstr::Simstr(const char * str) } else { - len = strlen(str); + len = strlen(s_); sz = new char[len+1]; - memcpy(sz,str,len+1); + memcpy(sz,s_,len+1); } } @@ -182,9 +182,9 @@ Simstr::operator+=(const Simstr & S) } Simstr & -Simstr::operator+=(const char * s) +Simstr::operator+=(const char * s_) { - Simstr a(s); + Simstr a(s_); push_back(a); return *this; } |