summaryrefslogtreecommitdiff
path: root/framework/source/uifactory
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-02-07 15:58:00 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-02-10 16:43:54 +0100
commitcc5ec80521546cddd0ce12fcd25becbcf2c7d2a5 (patch)
tree9c9a8a1753882c1e1a852ed754d68d2a2d3605c6 /framework/source/uifactory
parente3e1bddb85bac9b8008a02a9fab057aae4b5c839 (diff)
misc cleanup and unnecessary OUStrings
Change-Id: Idef960995d7b13af049de5a5045b99df642dc3df
Diffstat (limited to 'framework/source/uifactory')
-rw-r--r--framework/source/uifactory/addonstoolbarfactory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx
index 8f9fff8ab89d..2a89e5c86d39 100644
--- a/framework/source/uifactory/addonstoolbarfactory.cxx
+++ b/framework/source/uifactory/addonstoolbarfactory.cxx
@@ -196,7 +196,7 @@ throw ( ::com::sun::star::container::NoSuchElementException,
Args[n].Value >>= aResourceURL;
}
- if ( aResourceURL.indexOf( "private:resource/toolbar/addon_" ) != 0 )
+ if ( !aResourceURL.startsWith("private:resource/toolbar/addon_") )
throw IllegalArgumentException();
// Identify frame and determine module identifier to look for context based buttons