Kaydet (Commit) b03b96fc authored tarafından Caolán McNamara's avatar Caolán McNamara

remove deprecated ByteString::CreateFromInt64

üst ced906ea
...@@ -204,7 +204,6 @@ public: ...@@ -204,7 +204,6 @@ public:
} }
static ByteString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 ); static ByteString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 );
static ByteString CreateFromInt64( sal_Int64 n, sal_Int16 nRadix = 10 );
static const ByteString& EmptyString(); static const ByteString& EmptyString();
sal_Int32 ToInt32() const; sal_Int32 ToInt32() const;
sal_Int64 ToInt64() const; sal_Int64 ToInt64() const;
......
...@@ -104,21 +104,14 @@ ByteString ByteString::CreateFromInt32( sal_Int32 n, sal_Int16 nRadix ) ...@@ -104,21 +104,14 @@ ByteString ByteString::CreateFromInt32( sal_Int32 n, sal_Int16 nRadix )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
ByteString ByteString::CreateFromInt64( sal_Int64 n, sal_Int16 nRadix ) namespace
{ {
sal_Char aBuf[RTL_STR_MAX_VALUEOFINT64]; struct theEmpty : public rtl::Static< const ByteString, theEmpty> {};
BOOST_STATIC_ASSERT(RTL_STR_MAX_VALUEOFINT64 <= STRING_MAXLEN);
return ByteString(
aBuf,
static_cast< xub_StrLen >(rtl_str_valueOfInt64( aBuf, n, nRadix )) );
} }
// -----------------------------------------------------------------------
namespace { struct Empty : public rtl::Static< const ByteString, Empty> {}; }
const ByteString& ByteString::EmptyString() const ByteString& ByteString::EmptyString()
{ {
return Empty::get(); return theEmpty::get();
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment