diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-28 21:58:18 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-28 23:08:46 +0000 |
commit | f998aec8972d2b6b226fb8d3bdd589f5ff233222 (patch) | |
tree | dbd2525b2548e5824f805fa1880f7213dba4349e /filter | |
parent | Slightly more efficient assign(). (diff) | |
download | core-f998aec8972d2b6b226fb8d3bdd589f5ff233222.tar.gz core-f998aec8972d2b6b226fb8d3bdd589f5ff233222.zip |
indexOf returns -1 not STRING_NOTFOUND
Change-Id: I2fed196572a0a5f5b006d1d653968729d6d75583
Reviewed-on: https://gerrit.libreoffice.org/3115
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index f3944cf504dc..0f99932dc20c 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -1208,7 +1208,7 @@ sal_Bool EscherPropertyContainer::CreateEmbeddedBitmapProperties( OUString aVndUrl( "vnd.sun.star.GraphicObject:" ); OUString aBmpUrl( rBitmapUrl ); sal_Int32 nIndex = aBmpUrl.indexOf( aVndUrl, 0 ); - if( nIndex != STRING_NOTFOUND ) + if( nIndex != -1 ) { // note: += ist not defined for xub_StrLen -> conversion to int and back to xub_StrLen nIndex = nIndex + aVndUrl.getLength(); @@ -1376,7 +1376,7 @@ sal_Bool EscherPropertyContainer::CreateGraphicProperties( { OUString aVndUrl( "vnd.sun.star.GraphicObject:" ); sal_Int32 nIndex = aGraphicUrl.indexOf( aVndUrl, 0 ); - if ( nIndex != STRING_NOTFOUND ) + if ( nIndex != -1 ) { nIndex = nIndex + aVndUrl.getLength(); if ( aGraphicUrl.getLength() > nIndex ) |