diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-30 23:27:39 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-30 23:29:00 -0400 |
commit | 5c304bb5785aa1cb5806fdbd4a4f3e443c56365e (patch) | |
tree | d69edc83c2ac0a87839f21387652628da61d5cdf /configmgr/source | |
parent | d4ee7505e285af5086acd8ea61cf640f89b7d96d (diff) |
Make configmgr buildable with debug=true.
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/rootaccess.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configmgr/source/rootaccess.cxx b/configmgr/source/rootaccess.cxx index f320b999dcd2..4ae38c43797a 100644 --- a/configmgr/source/rootaccess.cxx +++ b/configmgr/source/rootaccess.cxx @@ -229,7 +229,9 @@ void RootAccess::clearListeners() throw() { css::uno::Any RootAccess::queryInterface(css::uno::Type const & aType) throw (css::uno::RuntimeException) { +#if OSL_DEBUG_LEVEL > 0 OSL_ASSERT(thisIs(IS_ANY)); +#endif osl::MutexGuard g(*lock_); checkLocalizedPropertyAccess(); css::uno::Any res(Access::queryInterface(aType)); @@ -252,7 +254,9 @@ void RootAccess::addChangesListener( css::uno::Reference< css::util::XChangesListener > const & aListener) throw (css::uno::RuntimeException) { +#if OSL_DEBUG_LEVEL > 0 OSL_ASSERT(thisIs(IS_ANY)); +#endif { osl::MutexGuard g(*lock_); checkLocalizedPropertyAccess(); @@ -276,7 +280,9 @@ void RootAccess::removeChangesListener( css::uno::Reference< css::util::XChangesListener > const & aListener) throw (css::uno::RuntimeException) { +#if OSL_DEBUG_LEVEL > 0 OSL_ASSERT(thisIs(IS_ANY)); +#endif osl::MutexGuard g(*lock_); checkLocalizedPropertyAccess(); ChangesListeners::iterator i(changesListeners_.find(aListener)); @@ -290,7 +296,9 @@ extern int tempHACK; void RootAccess::commitChanges() throw (css::lang::WrappedTargetException, css::uno::RuntimeException) { +#if OSL_DEBUG_LEVEL > 0 OSL_ASSERT(thisIs(IS_UPDATE)); +#endif Broadcaster bc; { osl::MutexGuard g(*lock_); @@ -317,7 +325,9 @@ void RootAccess::commitChanges() } sal_Bool RootAccess::hasPendingChanges() throw (css::uno::RuntimeException) { +#if OSL_DEBUG_LEVEL > 0 OSL_ASSERT(thisIs(IS_UPDATE)); +#endif osl::MutexGuard g(*lock_); checkLocalizedPropertyAccess(); //TODO: Optimize: @@ -329,7 +339,9 @@ sal_Bool RootAccess::hasPendingChanges() throw (css::uno::RuntimeException) { css::util::ChangesSet RootAccess::getPendingChanges() throw (css::uno::RuntimeException) { +#if OSL_DEBUG_LEVEL > 0 OSL_ASSERT(thisIs(IS_UPDATE)); +#endif osl::MutexGuard g(*lock_); checkLocalizedPropertyAccess(); comphelper::SequenceAsVector< css::util::ElementChange > changes; @@ -339,7 +351,9 @@ css::util::ChangesSet RootAccess::getPendingChanges() rtl::OUString RootAccess::getImplementationName() throw (css::uno::RuntimeException) { +#if OSL_DEBUG_LEVEL > 0 OSL_ASSERT(thisIs(IS_ANY)); +#endif osl::MutexGuard g(*lock_); checkLocalizedPropertyAccess(); return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "configmgr.RootAccess" ) ); |