Kaydet (Commit) f0a85750 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS sb59 (1.20.62); FILE MERGED

2006/08/03 13:52:03 cl 1.20.62.1: removed compiler warnings
üst 9468888d
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: xmleohlp.cxx,v $ * $RCSfile: xmleohlp.cxx,v $
* *
* $Revision: 1.21 $ * $Revision: 1.22 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 06:19:58 $ * last change: $Author: obo $ $Date: 2006-10-12 13:29:01 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -354,8 +354,8 @@ sal_Bool SvXMLEmbeddedObjectHelper::ImplGetStorageNames( ...@@ -354,8 +354,8 @@ sal_Bool SvXMLEmbeddedObjectHelper::ImplGetStorageNames(
{ {
DBG_ASSERT( '#' != aURLNoPar[0], "invalid object URL" ); DBG_ASSERT( '#' != aURLNoPar[0], "invalid object URL" );
sal_Int32 nPos = aURLNoPar.lastIndexOf( '/' ); sal_Int32 _nPos = aURLNoPar.lastIndexOf( '/' );
if( -1 == nPos ) if( -1 == _nPos )
{ {
rContainerStorageName = OUString(); rContainerStorageName = OUString();
rObjectStorageName = aURLNoPar; rObjectStorageName = aURLNoPar;
...@@ -365,9 +365,9 @@ sal_Bool SvXMLEmbeddedObjectHelper::ImplGetStorageNames( ...@@ -365,9 +365,9 @@ sal_Bool SvXMLEmbeddedObjectHelper::ImplGetStorageNames(
sal_Int32 nPathStart = 0; sal_Int32 nPathStart = 0;
if( 0 == aURLNoPar.compareToAscii( "./", 2 ) ) if( 0 == aURLNoPar.compareToAscii( "./", 2 ) )
nPathStart = 2; nPathStart = 2;
if( nPos >= nPathStart ) if( _nPos >= nPathStart )
rContainerStorageName = aURLNoPar.copy( nPathStart, nPos-nPathStart); rContainerStorageName = aURLNoPar.copy( nPathStart, _nPos-nPathStart);
rObjectStorageName = aURLNoPar.copy( nPos+1 ); rObjectStorageName = aURLNoPar.copy( _nPos+1 );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment