From 363cc397172f2b0a94d9c4dc44fc8d95072795a3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 19 Nov 2013 12:47:37 +0200 Subject: convert equalsAsciiL calls to startWith calls where possible Simplify code like: aStr.equalsAsciiL( "%", 1 ) to aStr.startsWith( "%" ) Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00 --- svx/source/xoutdev/xattr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx') diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index 23fd6de0beb0..10e950fa0430 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -889,9 +889,9 @@ bool XLineDashItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 { for ( sal_Int32 n = 0; n < aPropSeq.getLength(); n++ ) { - if ( aPropSeq[n].Name.equalsAsciiL( "Name", 4 )) + if ( aPropSeq[n].Name.startsWith( "Name" )) aPropSeq[n].Value >>= aName; - else if ( aPropSeq[n].Name.equalsAsciiL( "LineDash", 8 )) + else if ( aPropSeq[n].Name.startsWith( "LineDash" )) { if ( aPropSeq[n].Value >>= aLineDash ) bLineDash = true; -- cgit