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 /tools | |
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 'tools')
-rw-r--r-- | tools/source/inet/inetmime.cxx | 2 | ||||
-rw-r--r-- | tools/source/misc/getprocessworkingdir.cxx | 2 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index a94a83c78d49..40c78865fde1 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -313,7 +313,7 @@ bool parseParameters(ParameterList const & rInput, while (pNext && pNext->m_nSection > 0); if (bBadEncoding) { - aValue = OUString(); + aValue.clear(); for (pNext = p;;) { if (pNext->m_bExtended) diff --git a/tools/source/misc/getprocessworkingdir.cxx b/tools/source/misc/getprocessworkingdir.cxx index c219adf0ce73..dfe0b6d13a94 100644 --- a/tools/source/misc/getprocessworkingdir.cxx +++ b/tools/source/misc/getprocessworkingdir.cxx @@ -33,7 +33,7 @@ namespace tools { bool getProcessWorkingDir(OUString &rUrl) { - rUrl = OUString(); + rUrl.clear(); OUString s("$OOO_CWD"); rtl::Bootstrap::expandMacros(s); if (s.isEmpty()) diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 1a9ee6b28929..327dda5fd201 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -535,7 +535,7 @@ bool SvStream::ReadLine( OString& rStr, sal_Int32 nMaxBytesToRead ) { // Exit on first block-read error bIsEof = true; - rStr = OString(); + rStr.clear(); return false; } else @@ -612,7 +612,7 @@ bool SvStream::ReadUniStringLine( OUString& rStr, sal_Int32 nMaxCodepointsToRead { // exit on first BlockRead error bIsEof = true; - rStr = OUString(); + rStr.clear(); return false; } else @@ -2005,7 +2005,7 @@ SvScriptStream::~SvScriptStream() bool SvScriptStream::ReadLine(OString &rStr, sal_Int32) { - rStr = OString(); + rStr.clear(); if (!good()) return false; |