From 937b63af3322f7f8b5e869b2c7431a2deaec3113 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 9 Mar 2013 22:47:20 +0100 Subject: use startsWith() instead of compareToAscii() brain damage... Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff --- xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlhelp/source/cxxhelp/provider/urlparameter.cxx') diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 386f4662f8f8..f82117de342a 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -519,7 +519,7 @@ bool URLParameter::scheme() { // Correct extension help links as sometimes the // module is missing resulting in a misformed URL - if( m_aExpr.compareToAscii( "vnd.sun.star.help:///", 21 ) == 0 ) + if( m_aExpr.startsWith("vnd.sun.star.help:///") ) { sal_Int32 nLen = m_aExpr.getLength(); rtl::OUString aLastStr = -- cgit