summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2012-08-06 10:40:32 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-08-06 12:22:10 +0100
commitcf239da5c403164e75c369173fe6bed747de9e09 (patch)
tree38999901baaf3091692d7649c7804f224b661a99 /filter
parent515ceca5153d67ea602ab8c4fb339a7b42e9063e (diff)
There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
Diffstat (limited to 'filter')
-rw-r--r--filter/source/config/cache/filterfactory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx
index 82924059788a..30c25d642145 100644
--- a/filter/source/config/cache/filterfactory.cxx
+++ b/filter/source/config/cache/filterfactory.cxx
@@ -241,7 +241,7 @@ css::uno::Reference< css::container::XEnumeration > SAL_CALL FilterFactory::crea
// convert "_query_xxx:..." to "getByDocService=xxx:..."
::rtl::OUString sNewQuery(sQuery);
- sal_Int32 pos = sNewQuery.indexOf(::rtl::OUString( "_query_" ),0);
+ sal_Int32 pos = sNewQuery.indexOf("_query_");
if (pos != -1)
{
OSL_FAIL("DEPRECATED!\nPlease use new query format: 'matchByDocumentService=...'");