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

Related: fdo#38838 remove UniString::UniString(const ResId&)

Change-Id: Id881fe3f9c7c89a7bcc1a5d8f653e18494ffa913
üst 80d4770e
......@@ -101,7 +101,6 @@ private:
UniString& Append( const UniString& rStr );
public:
UniString();
UniString( const ResId& rResId );
UniString( const UniString& rStr );
UniString( const OUString& rStr );
~UniString();
......
......@@ -59,25 +59,6 @@ UniString& UniString::Assign( const OUString& rStr )
#include <tools/rc.hxx>
#include <tools/rcid.h>
UniString::UniString( const ResId& rResId )
: mpData(NULL)
{
OUString sStr(rResId.toString());
OSL_ENSURE(sStr.pData->length < STRING_MAXLEN,
"Overflowing OUString -> UniString cut to zero length");
if (sStr.pData->length < STRING_MAXLEN)
{
mpData = reinterpret_cast< UniStringData * >(sStr.pData);
STRING_ACQUIRE((STRING_TYPE *)mpData);
}
else
{
STRING_NEW((STRING_TYPE **)&mpData);
}
}
OUString ResId::toString() const
{
SetRT( RSC_STRING );
......
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