summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/inet/inetmime.cxx2
-rw-r--r--tools/source/misc/getprocessworkingdir.cxx2
-rw-r--r--tools/source/stream/stream.cxx6
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;