summaryrefslogtreecommitdiff
path: root/filter/source/config/cache/filterfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/config/cache/filterfactory.cxx')
-rw-r--r--filter/source/config/cache/filterfactory.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx
index d55b3c4ab64f..020fd1360588 100644
--- a/filter/source/config/cache/filterfactory.cxx
+++ b/filter/source/config/cache/filterfactory.cxx
@@ -199,10 +199,8 @@ css::uno::Reference< css::container::XEnumeration > SAL_CALL FilterFactory::crea
if (pos != -1)
{
OSL_FAIL("DEPRECATED!\nPlease use new query format: 'matchByDocumentService=...'");
- ::rtl::OUStringBuffer sPatchedQuery(256);
- sPatchedQuery.appendAscii("matchByDocumentService=");
- sPatchedQuery.append (sNewQuery.copy(7) );
- sNewQuery = sPatchedQuery.makeStringAndClear();
+ OUString sPatchedQuery("matchByDocumentService=" + sNewQuery.copy(7));
+ sNewQuery = sPatchedQuery;
}
// analyze query and split it into its tokens