From fb847101519ad74c02183672c04ebf1d700aae83 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 10 Dec 2013 08:31:13 +0200 Subject: simplify - use OUString::startsWith where possible Convert code like if( !aStr.isEmpty() && aStr[0] == 'x' ) to if( aStr.startsWith("x") ) Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf --- starmath/source/parse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath') diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index b5e37655e42b..9b8fc8da2f72 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -2295,7 +2295,7 @@ void SmParser::Special() // conversion of symbol names for 6.0 (XML) file format // (name change on import / export. // UI uses localized names XML file format does not.) - if (!rName.isEmpty() && rName[0] == '%') + if( rName.startsWith("%") ) { if (IsImportSymbolNames()) { -- cgit