From 498e25e14bfeac30c00e5f6204fa8103270c96a5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 7 May 2015 09:50:19 +0200 Subject: fix for CONFIG_MODE constant -> enum conversion in my commit b35828ba7dc33af81d17c8c870ec981d18a57b08 "convert CONFIG_MODE constants to scoped enum" Change-Id: Iafb6b1643920eb066a2d50150f408161331f9d04 --- unotools/source/config/configitem.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 2e32a0e0d8c1..0d055ecf53fa 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -532,11 +532,10 @@ void ConfigItem::DisableNotification() RemoveChangesListener(); } -bool ConfigItem::EnableNotification(const Sequence< OUString >& rNames, - bool bEnableInternalNotification ) - +bool ConfigItem::EnableNotification(const Sequence< OUString >& rNames, + bool bEnableInternalNotification ) { - OSL_ENSURE(bool(m_nMode & ConfigItemMode::ReleaseTree), "notification in ConfigItemMode::ReleaseTree mode not possible"); + OSL_ENSURE(!(m_nMode & ConfigItemMode::ReleaseTree), "notification in ConfigItemMode::ReleaseTree mode not possible"); m_bEnableInternalNotification = bEnableInternalNotification; Reference xHierarchyAccess = GetTree(); Reference xChgNot(xHierarchyAccess, UNO_QUERY); -- cgit