summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-25 12:37:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-25 12:38:38 +0200
commit69acf266801246d0099d02de57db332fbe167c72 (patch)
tree103bd650ab8adc2b6d405de6eacd005a98ebe48f /ucb
parent8918eaf6d6b3de149e77ade965ab46694972b985 (diff)
loplugin:stringconstant: Flag more inefficiencies
Change-Id: I5bd4f30d7b614af34b5ca2edca06bab9350ca206
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyuri.cxx4
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx3
-rw-r--r--ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx3
3 files changed, 3 insertions, 7 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchyuri.cxx b/ucb/source/ucp/hierarchy/hierarchyuri.cxx
index 0c4b25957114..03c10dc22d24 100644
--- a/ucb/source/ucp/hierarchy/hierarchyuri.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchyuri.cxx
@@ -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 = "/";
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index d13e8439598b..5c90ae2600b8 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -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(
diff --git a/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx b/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
index a73776697525..047b018fe4af 100644
--- a/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
+++ b/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
@@ -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;