summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-07 09:50:19 +0200
committerNoel Grandin <noel@peralex.com>2015-05-07 09:51:08 +0200
commit498e25e14bfeac30c00e5f6204fa8103270c96a5 (patch)
tree38dcca2d36f90dcfde26d0348de049ce057556f5 /unotools
parenta7530de8e6b41255ca884d40f63773fbe5642b35 (diff)
fix for CONFIG_MODE constant -> enum conversion
in my commit b35828ba7dc33af81d17c8c870ec981d18a57b08 "convert CONFIG_MODE constants to scoped enum" Change-Id: Iafb6b1643920eb066a2d50150f408161331f9d04
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configitem.cxx7
1 files changed, 3 insertions, 4 deletions
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<XHierarchicalNameAccess> xHierarchyAccess = GetTree();
Reference<XChangesNotifier> xChgNot(xHierarchyAccess, UNO_QUERY);