summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-04-15 15:47:23 +0200
committerDavid Tardon <dtardon@redhat.com>2012-04-16 20:22:58 +0200
commit7e6e16ba6de2d3ef2b130d1ad5ffeabfdb37918e (patch)
tree6f4df9903843466c6826d1e97430ca8ae9223ff8 /embeddedobj
parentbd51998c2f0cd3d73aaa218b1e7db0cdcee97df3 (diff)
WaE: declaration of 'nInd' shadows a previous local
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/olepersist.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx
index 6840fe6cddcc..efb51d39ff33 100644
--- a/embeddedobj/source/msole/olepersist.cxx
+++ b/embeddedobj/source/msole/olepersist.cxx
@@ -1389,8 +1389,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
sal_Bool bElExists = xNameAccess->hasByName( sEntName );
m_bReadOnly = sal_False;
- sal_Int32 nInd = 0;
- for ( nInd = 0; nInd < lArguments.getLength(); nInd++ )
+ for ( sal_Int32 nInd = 0; nInd < lArguments.getLength(); nInd++ )
if ( lArguments[nInd].Name == "ReadOnly" )
lArguments[nInd].Value >>= m_bReadOnly;
@@ -1400,7 +1399,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
SwitchOwnPersistence( xStorage, sEntName );
- for ( nInd = 0; nInd < lObjArgs.getLength(); nInd++ )
+ for ( sal_Int32 nInd = 0; nInd < lObjArgs.getLength(); nInd++ )
if ( lObjArgs[nInd].Name == "StoreVisualReplacement" )
lObjArgs[nInd].Value >>= m_bStoreVisRepl;