From a7674482254ee996b1c4fee60f3064778be369aa Mon Sep 17 00:00:00 2001 From: Christophe JAILLET Date: Thu, 12 Jul 2012 22:10:17 +0200 Subject: Search for char instead of 1 char long string, when possible. It is faster and even avoid memory allocation somtimes. Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445 --- fpicker/source/office/ServerDetailsControls.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpicker/source/office') diff --git a/fpicker/source/office/ServerDetailsControls.cxx b/fpicker/source/office/ServerDetailsControls.cxx index 69dfa4f74611..93e02f8cf520 100644 --- a/fpicker/source/office/ServerDetailsControls.cxx +++ b/fpicker/source/office/ServerDetailsControls.cxx @@ -155,7 +155,7 @@ INetURLObject HostDetailsContainer::getUrl( ) if ( nPort != m_nDefaultPort ) sUrl += ":" + rtl::OUString::valueOf( nPort ); if ( !sPath.isEmpty( ) ) - if ( sPath.indexOf( "/" ) != 0 ) + if ( sPath.indexOf( '/' ) != 0 ) sUrl += "/"; sUrl += sPath; } @@ -254,7 +254,7 @@ INetURLObject SmbDetailsContainer::getUrl( ) if ( !sShare.isEmpty( ) ) sUrl += sShare; if ( !sPath.isEmpty( ) ) - if ( sPath.indexOf( "/" ) != 0 ) + if ( sPath.indexOf( '/' ) != 0 ) sUrl += "/"; sUrl += sPath; } -- cgit v1.2.3