From df645a2bd8a9b5463c74f261268f0d2de7245ccc Mon Sep 17 00:00:00 2001 From: Christophe JAILLET Date: Sat, 14 Jul 2012 18:00:06 +0200 Subject: There is not need to allocate memory just for getting the 'indexOf' a literal within a OUString. Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7 --- filter/source/xsltfilter/XSLTFilter.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'filter/source/xsltfilter') diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index fd3fc8b6a51b..6acc1168ef70 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -202,8 +202,7 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) "/singletons/com.sun.star.util.theMacroExpander" )), UNO_QUERY_THROW); sExpandedUrl = xMacroExpander->expandMacros(sUrl); - sal_Int32 nPos = sExpandedUrl.indexOf(::rtl::OUString( - "vnd.sun.star.expand:" )); + sal_Int32 nPos = sExpandedUrl.indexOf( "vnd.sun.star.expand:" ); if (nPos != -1) sExpandedUrl = sExpandedUrl.copy(nPos + 20); } -- cgit