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 --- svx/workben/msview/xmlconfig.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/workben') diff --git a/svx/workben/msview/xmlconfig.cxx b/svx/workben/msview/xmlconfig.cxx index 96203dd47874..7f46b7325786 100644 --- a/svx/workben/msview/xmlconfig.cxx +++ b/svx/workben/msview/xmlconfig.cxx @@ -202,7 +202,7 @@ void SAL_CALL ConfigHandler::startElement(const OUString& aName, const Reference sal_Int32 toInt( const OUString& rText ) { - if( rText.compareToAscii("0x",2) == 0) + if( rText.startsWith("0x")) { sal_Int32 nValue = 0; const sal_Unicode *p = rText; -- cgit