diff options
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 1a23a68ffdf9..869f3a1d5dee 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -3703,13 +3703,11 @@ bool SvxBrushItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) { OUString sLink; rVal >>= sLink; - if( 0 == sLink.compareToAscii( UNO_NAME_GRAPHOBJ_URLPKGPREFIX, - sizeof(UNO_NAME_GRAPHOBJ_URLPKGPREFIX)-1 ) ) + if( sLink.startsWith( UNO_NAME_GRAPHOBJ_URLPKGPREFIX ) ) { OSL_FAIL( "package urls aren't implemented" ); } - else if( 0 == sLink.compareToAscii( UNO_NAME_GRAPHOBJ_URLPREFIX, - sizeof(UNO_NAME_GRAPHOBJ_URLPREFIX)-1 ) ) + else if( sLink.startsWith( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) { DELETEZ( pStrLink ); String sTmp( sLink ); |