summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2012-07-12 22:10:17 +0200
committerEike Rathke <erack@redhat.com>2012-07-13 16:36:04 +0200
commita7674482254ee996b1c4fee60f3064778be369aa (patch)
treedcafebf4d72d6d26ad949f0d18a000ea00f02315 /svtools
parent0cba5e5d25bf2f30c8500e1e673a7ef9e8e8d352 (diff)
Search for char instead of 1 char long string, when possible.
It is faster and even avoid memory allocation somtimes. Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/contentenumeration.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/contnr/contentenumeration.cxx b/svtools/source/contnr/contentenumeration.cxx
index c79636c77a2c..8fe19c96e20b 100644
--- a/svtools/source/contnr/contentenumeration.cxx
+++ b/svtools/source/contnr/contentenumeration.cxx
@@ -370,7 +370,7 @@ namespace svt
sal_Bool FileViewContentEnumerator::URLOnBlackList ( const ::rtl::OUString& sRealURL )
{
- ::rtl::OUString entryName = sRealURL.copy( sRealURL.lastIndexOf( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ))) +1 );
+ ::rtl::OUString entryName = sRealURL.copy( sRealURL.lastIndexOf( '/' ) + 1 );
for (int i = 0; i < m_rBlackList.getLength() ; i++)
{