diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-31 15:47:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-31 21:18:02 +0100 |
commit | d4d26018402aaa75fcb6524f5c7d99fcd9c5be45 (patch) | |
tree | c28d757e50807012ef9b5fe3c8195515273e65b4 /tools/source/string | |
parent | 2769f2d0615df4b0c720f4b62bfd174f818bd544 (diff) |
ditch ByteString::CreateFromInt32
Diffstat (limited to 'tools/source/string')
-rw-r--r-- | tools/source/string/tstring.cxx | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tools/source/string/tstring.cxx b/tools/source/string/tstring.cxx index e3675c855e08..509bc6270b7e 100644 --- a/tools/source/string/tstring.cxx +++ b/tools/source/string/tstring.cxx @@ -31,8 +31,6 @@ #include <string.h> -#include "boost/static_assert.hpp" - #include "osl/diagnose.h" #include <osl/interlck.h> #include <rtl/alloc.h> @@ -92,17 +90,6 @@ xub_StrLen ImplStringLen( const sal_Unicode* pStr ) // ----------------------------------------------------------------------- -ByteString ByteString::CreateFromInt32( sal_Int32 n, sal_Int16 nRadix ) -{ - sal_Char aBuf[RTL_STR_MAX_VALUEOFINT32]; - BOOST_STATIC_ASSERT(RTL_STR_MAX_VALUEOFINT32 <= STRING_MAXLEN); - return ByteString( - aBuf, - static_cast< xub_StrLen >(rtl_str_valueOfInt32( aBuf, n, nRadix )) ); -} - -// ----------------------------------------------------------------------- - sal_Int32 ByteString::ToInt32() const { DBG_CHKTHIS( ByteString, DbgCheckByteString ); |