Kaydet (Commit) 69acf266 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: Flag more inefficiencies

Change-Id: I5bd4f30d7b614af34b5ca2edca06bab9350ca206
üst 8918eaf6
......@@ -123,9 +123,7 @@ void HierarchyUri::init() const
}
// Empty path segments?
if ( m_aUri.indexOf(
OUString("//"),
nStart ) != -1 )
if ( m_aUri.indexOf("//", nStart) != -1 )
{
// error, but remember that we did a init().
m_aPath = "/";
......
......@@ -720,8 +720,7 @@ void NeonSession::Init()
// Register the session with the lock store
m_aNeonLockStore.registerSession( m_pHttpSession );
if ( m_aScheme.equalsIgnoreAsciiCase(
OUString( "https" ) ) )
if ( m_aScheme.equalsIgnoreAsciiCase("https") )
{
// Set a failure callback for certificate check
ne_ssl_set_verify(
......
......@@ -376,8 +376,7 @@ bool UCBDeadPropertyValue::createFromXML( const OString & rInData,
}
else if ( aCtx.pType->equalsIgnoreAsciiCase( aTypeBoolean ) )
{
if ( aStringValue.equalsIgnoreAsciiCase(
OUString("true") ) )
if ( aStringValue.equalsIgnoreAsciiCase("true") )
rOutData <<= true;
else
rOutData <<= false;
......
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