diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 15:53:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 15:54:52 +0100 |
commit | a3f32769fc4bb23c64168b412dd10ec769a3854d (patch) | |
tree | 92bb435946dcfc422c9816bc05c150069a2da3c3 /svx/source/items | |
parent | 35539318cecddc9ccb2904573a894ea05adc432c (diff) |
Fix bogus mass-conversion equalsAsciiL -> startsWith
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to
startsWith calls" should rather have converted to oprator ==.
Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
Diffstat (limited to 'svx/source/items')
-rw-r--r-- | svx/source/items/galleryitem.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/items/galleryitem.cxx b/svx/source/items/galleryitem.cxx index 3b94645e4a4f..ace2edd4af85 100644 --- a/svx/source/items/galleryitem.cxx +++ b/svx/source/items/galleryitem.cxx @@ -87,27 +87,27 @@ bool SvxGalleryItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /* nMemberId const css::beans::PropertyValue *pEnd = pProp + aSeq.getLength(); for ( ; pProp != pEnd; pProp++ ) { - if ( pProp->Name.startsWith( SVXGALLERYITEM_TYPE ) ) + if ( pProp->Name == SVXGALLERYITEM_TYPE ) { bAllConverted &= bIsSetType = ( pProp->Value >>= nType ); ++nConverted; } - else if ( pProp->Name.startsWith( SVXGALLERYITEM_URL ) ) + else if ( pProp->Name == SVXGALLERYITEM_URL ) { bAllConverted &= ( pProp->Value >>= aURL ); ++nConverted; } - else if ( pProp->Name.startsWith( SVXGALLERYITEM_FILTER ) ) + else if ( pProp->Name == SVXGALLERYITEM_FILTER ) { bAllConverted &= ( pProp->Value >>= aFilterName ); ++nConverted; } - else if ( pProp->Name.startsWith( SVXGALLERYITEM_DRAWING ) ) + else if ( pProp->Name == SVXGALLERYITEM_DRAWING ) { bAllConverted &= ( pProp->Value >>= xDrawing ); ++nConverted; } - else if ( pProp->Name.startsWith( SVXGALLERYITEM_GRAPHIC ) ) + else if ( pProp->Name == SVXGALLERYITEM_GRAPHIC ) { bAllConverted &= ( pProp->Value >>= xGraphic ); ++nConverted; |