summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/accessiblewrapper.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 21:47:09 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 21:47:09 +0000
commitfcf09aabd5fef0e6c659ca340fb7b1c84173ca36 (patch)
treef6d42c685877a8fde693851397706fd02c07a1e6 /comphelper/source/misc/accessiblewrapper.cxx
parentcb1eba60282331e5aa7dc370e773498e0c01b8c6 (diff)
INTEGRATION: CWS warnings01 (1.8.184); FILE MERGED
2006/05/23 22:37:09 sb 1.8.184.4: RESYNC: (1.9-1.11); FILE MERGED 2005/09/23 03:16:01 sb 1.8.184.3: RESYNC: (1.8-1.9); FILE MERGED 2005/09/08 13:16:51 sb 1.8.184.2: #i53898# Made code warning-free. 2005/09/01 13:59:58 sb 1.8.184.1: #i53898# Made code warning-free.
Diffstat (limited to 'comphelper/source/misc/accessiblewrapper.cxx')
-rw-r--r--comphelper/source/misc/accessiblewrapper.cxx27
1 files changed, 15 insertions, 12 deletions
diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx
index 1ed04151613a..52913d3d8809 100644
--- a/comphelper/source/misc/accessiblewrapper.cxx
+++ b/comphelper/source/misc/accessiblewrapper.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: accessiblewrapper.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: hr $ $Date: 2006-05-08 14:56:34 $
+ * last change: $Author: hr $ $Date: 2006-06-19 22:47:09 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -171,11 +171,15 @@ namespace comphelper
// see if we do cache children
if ( !m_bTransientChildren )
{
-#if OSL_DEBUG_LEVEL > 0
- ::std::pair< AccessibleMap::iterator, bool > aPos =
-#endif
- m_aChildrenMap.insert( AccessibleMap::value_type( _rxKey, xValue ) );
- OSL_ENSURE( aPos.second, "OWrappedAccessibleChildrenManager::getAccessibleWrapperFor: element was already inserted!" );
+ if (!m_aChildrenMap.insert(
+ AccessibleMap::value_type( _rxKey, xValue ) ).second)
+ {
+ OSL_ENSURE(
+ false,
+ "OWrappedAccessibleChildrenManager::"
+ "getAccessibleWrapperFor: element was already"
+ " inserted!" );
+ }
// listen for disposals of inner children - this may happen when the inner context
// is the owner for the inner children (it will dispose these children, and of course
@@ -302,12 +306,11 @@ namespace comphelper
{
::rtl::OUString sName = xContext->getAccessibleName();
::rtl::OUString sDescription = xContext->getAccessibleDescription();
- sal_Int32 nPlaceYourBreakpointHere = 0;
+// sal_Int32 nPlaceYourBreakpointHere = 0;
}
}
- catch( const Exception& e )
+ catch( const Exception& /*e*/ )
{
- e; // make compiler happy
// silent this, it's only diagnostics which failed
}
}
@@ -326,8 +329,8 @@ namespace comphelper
const Reference< XAccessible >& _rxInnerAccessible, const Reference< XAccessible >& _rxParentAccessible )
:OAccessibleWrapper_Base( )
,OComponentProxyAggregation( _rxORB, Reference< XComponent >( _rxInnerAccessible, UNO_QUERY ) )
- ,m_xInnerAccessible( _rxInnerAccessible )
,m_xParentAccessible( _rxParentAccessible )
+ ,m_xInnerAccessible( _rxInnerAccessible )
{
}
@@ -422,7 +425,7 @@ namespace comphelper
Reference< XComponent > xInnerComponent( m_xInnerContext, UNO_QUERY );
OSL_ENSURE( xInnerComponent.is(), "OComponentProxyAggregation::aggregateProxy: accessible is no XComponent!" );
if ( xInnerComponent.is() )
- OComponentProxyAggregationHelper::aggregateProxyFor( xInnerComponent, _rRefCount, _rDelegator );
+ componentAggregateProxyFor( xInnerComponent, _rRefCount, _rDelegator );
// add as event listener to the inner context, because we want to multiplex the AccessibleEvents
osl_incrementInterlockedCount( &_rRefCount );