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