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 --- xmloff/source/transform/StyleOASISTContext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff/source/transform/StyleOASISTContext.cxx') diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx index 6f7caf7daf66..cd76458ad584 100644 --- a/xmloff/source/transform/StyleOASISTContext.cxx +++ b/xmloff/source/transform/StyleOASISTContext.cxx @@ -871,7 +871,7 @@ void XMLStyleOASISTContext::StartElement( --nAttrCount; break; case XML_ATACTION_DECODE_STYLE_NAME: - m_bControlStyle = 0 == rAttrValue.compareToAscii( "ctrl", 4 ); + m_bControlStyle = rAttrValue.startsWith( "ctrl" ); case XML_ATACTION_DECODE_STYLE_NAME_REF: { OUString aAttrValue( rAttrValue ); -- cgit