summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-10 09:28:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-10 09:29:00 +0100
commit19d37e5c4bd43d2477d21fbaeccef923a60eb9ec (patch)
tree25f28316783b40d04f5dc5a2663c9c7d9525f9f5 /framework
parentc14bd74f268d4883a73f46a7ceac2d2e98ac96a3 (diff)
loplugin: unused O[U]Strings
Change-Id: I020149a3073d8479887d108465cf5d3b727588d7
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/substitutepathvars.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index 9ac3c21cf87f..fbab8a466532 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -375,11 +375,9 @@ const rtl::OUString& SubstitutePathVariables_Impl::GetNTDomainName()
const rtl::OUString& SubstitutePathVariables_Impl::GetHostName()
{
- if ( !m_bHostRetrieved )
+ if (!m_bHostRetrieved)
{
- rtl::OUString aHostName;
oslSocketResult aSocketResult;
-
m_aHost = osl::SocketAddr::getLocalHostname( &aSocketResult ).toAsciiLowerCase();
}
@@ -1133,8 +1131,8 @@ throw ( NoSuchElementException, RuntimeException )
aVariable = rVariable.copy( 2, rVariable.getLength() - 3 );
else
{
- rtl::OUString aExceptionText( RTL_CONSTASCII_USTRINGPARAM( "Unknown variable!" ));
- throw NoSuchElementException();
+ OUString aExceptionText("Unknown variable!");
+ throw NoSuchElementException(aExceptionText, (cppu::OWeakObject *)this);
}
}
else
@@ -1148,8 +1146,8 @@ throw ( NoSuchElementException, RuntimeException )
return pIter->second.aSubstValue;
}
- rtl::OUString aExceptionText( RTL_CONSTASCII_USTRINGPARAM( "Unknown variable!" ));
- throw NoSuchElementException( aExceptionText, (cppu::OWeakObject *)this );
+ OUString aExceptionText("Unknown variable!");
+ throw NoSuchElementException(aExceptionText, (cppu::OWeakObject *)this);
}
}