summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-02-26 12:21:30 +0000
committerKurt Zenker <kz@openoffice.org>2004-02-26 12:21:30 +0000
commitd8e0e71437ef58143f0039fe9ec029355fd9034b (patch)
tree937f93f5712a46aa6d10bb4f64a39646ac895293 /tools
parent7f32c64c8117e4d12dbf234963429792459fe0d6 (diff)
INTEGRATION: CWS sb13 (1.2.210); FILE MERGED
2004/02/06 08:57:17 sb 1.2.210.1: #i19699# Tightened tools/string.hxx so that arithmetic/enumeration type arguments are not silently converted to char/sal_Unicode.
Diffstat (limited to 'tools')
-rw-r--r--tools/source/string/tustring.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx
index 48d1a44e38ec..04d01a87a9e2 100644
--- a/tools/source/string/tustring.cxx
+++ b/tools/source/string/tustring.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tustring.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: th $ $Date: 2001-03-16 15:25:57 $
+ * last change: $Author: kz $ $Date: 2004-02-26 13:21:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -99,6 +99,8 @@ DBG_NAMEEX( ByteString );
#include <strucvt.cxx>
#include <strascii.cxx>
+UniString::UniString(char c): mpData(ImplAllocData(1)) { mpData->maStr[0] = c; }
+
// -----------------------------------------------------------------------
UniString UniString::CreateFromInt32( sal_Int32 n, sal_Int16 nRadix )