diff options
author | Brij Mohan Lal Srivastava <contactbrijmohan@gmail.com> | 2014-11-12 14:24:10 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-14 09:20:38 +0100 |
commit | d32be3ace8c8fd430bbecdf69f88a116b0ee91d1 (patch) | |
tree | b373c084cb124434e0498867b24bc7bb333155dd /basic/source | |
parent | f5e86ebc097f0f8bc5b282511149cb026710ecde (diff) |
fdo#86023 - O[U]String needs a 'clear' method
Added clear() method to OString and OUString class, Updated appropriate call-sites.
Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/classes/errobject.cxx | 2 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/iosys.cxx | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/classes/errobject.cxx b/basic/source/classes/errobject.cxx index 64f88a2815a8..163336be8fe8 100644 --- a/basic/source/classes/errobject.cxx +++ b/basic/source/classes/errobject.cxx @@ -137,7 +137,7 @@ ErrObject::setSource( const OUString& _source ) throw (uno::RuntimeException, st void SAL_CALL ErrObject::Clear( ) throw (uno::RuntimeException, std::exception) { - m_sHelpFile = OUString(); + m_sHelpFile.clear(); m_sSource = m_sHelpFile; m_sDescription = m_sSource; m_nNumber = 0; diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index aff857622a53..91b98d7d1322 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -1833,7 +1833,7 @@ bool SbModule::StoreBinaryData( SvStream& rStrm, sal_uInt16 nVer ) bRet = SbxObject::StoreData( rStrm ); if( bRet ) { - pImage->aOUSource = OUString(); + (pImage->aOUSource).clear(); pImage->aComment = aComment; pImage->aName = GetName(); diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 4465743a6581..4627218ce6a6 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -738,7 +738,7 @@ SbError SbiStream::Write( const OString& rBuf, sal_uInt16 n ) aLine = aLine.copy(0, nLineLen); } WriteLines(*pStrm, aLine); - aLine = OString(); + aLine.clear(); } } else @@ -857,7 +857,7 @@ void SbiIoSystem::Shutdown() MessBox( GetpApp()->GetDefDialogParent(), WinBits( WB_OK ), OUString(), aOut ).Execute(); #endif } - aOut = OUString(); + aOut.clear(); } @@ -965,7 +965,7 @@ void SbiIoSystem::ReadCon(OString& rIn) { nError = SbERR_USER_ABORT; } - aPrompt = OString(); + aPrompt.clear(); } // output of a MessageBox, if theres a CR in the console-buffer |