summaryrefslogtreecommitdiff
path: root/tools/source/string
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-19 09:09:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-19 09:59:26 +0100
commitc5a994a89dea96d06df07ee5ac292438655f7ec7 (patch)
treea3510fae2461722a3b9b115130a32531d9395e1c /tools/source/string
parent6b7675a1b7994200c4501bc086ac40ca803b2335 (diff)
oops not yet
Diffstat (limited to 'tools/source/string')
-rw-r--r--tools/source/string/strimp.cxx14
-rw-r--r--tools/source/string/tustring.cxx14
2 files changed, 14 insertions, 14 deletions
diff --git a/tools/source/string/strimp.cxx b/tools/source/string/strimp.cxx
index 495b15aa4616..da98a85e09a6 100644
--- a/tools/source/string/strimp.cxx
+++ b/tools/source/string/strimp.cxx
@@ -428,6 +428,20 @@ STRING& STRING::Assign( const STRCODE* pCharStr, xub_StrLen nLen )
// -----------------------------------------------------------------------
+STRING& STRING::Assign( STRCODE c )
+{
+ DBG_CHKTHIS( STRING, DBGCHECKSTRING );
+ DBG_ASSERT( c, "String::Assign() - c is 0" );
+
+ // Verwaltungsdaten anlegen und initialisieren
+ STRING_RELEASE((STRING_TYPE *)mpData);
+ mpData = ImplAllocData( 1 );
+ mpData->maStr[0] = c;
+ return *this;
+}
+
+// -----------------------------------------------------------------------
+
STRING& STRING::Append( const STRING& rStr )
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx
index 82d5458c1e30..30a0fd508f49 100644
--- a/tools/source/string/tustring.cxx
+++ b/tools/source/string/tustring.cxx
@@ -576,18 +576,4 @@ STRING::STRING( STRCODE c )
mpData->maStr[0] = c;
}
-// -----------------------------------------------------------------------
-
-STRING& STRING::Assign( STRCODE c )
-{
- DBG_CHKTHIS( STRING, DBGCHECKSTRING );
- DBG_ASSERT( c, "String::Assign() - c is 0" );
-
- // Verwaltungsdaten anlegen und initialisieren
- STRING_RELEASE((STRING_TYPE *)mpData);
- mpData = ImplAllocData( 1 );
- mpData->maStr[0] = c;
- return *this;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */