summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-04-15 15:46:46 +0200
committerDavid Tardon <dtardon@redhat.com>2012-04-16 20:22:57 +0200
commitbd51998c2f0cd3d73aaa218b1e7db0cdcee97df3 (patch)
treed8095e0b9c277785633d42b36106f7f13a15d2e4 /embeddedobj
parentbc9229aa0cbd0c9d47c4f4c54790f3b9de76f2b8 (diff)
WaE: declaration of 'hr' shadows a previous local
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/olecomponent.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx
index f7d04e83d66b..8f30291f7e45 100644
--- a/embeddedobj/source/msole/olecomponent.cxx
+++ b/embeddedobj/source/msole/olecomponent.cxx
@@ -631,8 +631,8 @@ void OleComponent::RetrieveObjectDataFlavors_Impl()
sal_uInt32 nSupportedAspects = 0;
do
{
- HRESULT hr = pFormatEnum->Next( MAX_ENUM_ELE, pElem, &nNum );
- if( hr == S_OK || hr == S_FALSE )
+ HRESULT hr2 = pFormatEnum->Next( MAX_ENUM_ELE, pElem, &nNum );
+ if( hr2 == S_OK || hr2 == S_FALSE )
{
for( sal_uInt32 nInd = 0; nInd < FORMATS_NUM; nInd++ )
{
@@ -684,21 +684,21 @@ sal_Bool OleComponent::InitializeObject_Impl()
if ( SUCCEEDED( m_pNativeImpl->m_pObj->QueryInterface( IID_IOleCache, (void**)&pIOleCache ) ) && pIOleCache )
{
IEnumSTATDATA* pEnumSD = NULL;
- HRESULT hr = pIOleCache->EnumCache( &pEnumSD );
+ HRESULT hr2 = pIOleCache->EnumCache( &pEnumSD );
- if ( SUCCEEDED( hr ) && pEnumSD )
+ if ( SUCCEEDED( hr2 ) && pEnumSD )
{
pEnumSD->Reset();
STATDATA aSD;
DWORD nNum;
while( SUCCEEDED( pEnumSD->Next( 1, &aSD, &nNum ) ) && nNum == 1 )
- hr = pIOleCache->Uncache( aSD.dwConnection );
+ hr2 = pIOleCache->Uncache( aSD.dwConnection );
}
// No IDataObject implementation, caching must be used instead
DWORD nConn;
FORMATETC aFormat = { 0, 0, DVASPECT_CONTENT, -1, TYMED_MFPICT };
- hr = pIOleCache->Cache( &aFormat, ADVFCACHE_ONSAVE, &nConn );
+ hr2 = pIOleCache->Cache( &aFormat, ADVFCACHE_ONSAVE, &nConn );
pIOleCache->Release();
pIOleCache = NULL;