summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-19 12:47:37 +0200
committerNoel Grandin <noel@peralex.com>2013-11-19 12:49:29 +0200
commit363cc397172f2b0a94d9c4dc44fc8d95072795a3 (patch)
tree16a23a796e2db536d7af3f0144bce8fd01570e26 /svx
parent02a2203580226766c4b3b8778430774ff76f90e9 (diff)
convert equalsAsciiL calls to startWith calls where possible
Simplify code like: aStr.equalsAsciiL( "%", 1 ) to aStr.startsWith( "%" ) Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
Diffstat (limited to 'svx')
-rw-r--r--svx/source/xoutdev/xattr.cxx4
1 files changed, 2 insertions, 2 deletions
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;