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 | |
parent | 2769f2d0615df4b0c720f4b62bfd174f818bd544 (diff) |
ditch ByteString::CreateFromInt32
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/string.hxx | 1 | ||||
-rw-r--r-- | tools/source/string/tstring.cxx | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index c405c41ac860..33611b195aff 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -203,7 +203,6 @@ public: return rtl::OString (reinterpret_cast<rtl_String*>(mpData)); } - static ByteString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 ); sal_Int32 ToInt32() const; sal_Int64 ToInt64() const; 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 ); |