unotools/source/config/configitem.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit 498e25e14bfeac30c00e5f6204fa8103270c96a5 Author: Noel Grandin <[email protected]> Date: Thu May 7 09:50:19 2015 +0200 fix for CONFIG_MODE constant -> enum conversion in my commit b35828ba7dc33af81d17c8c870ec981d18a57b08 "convert CONFIG_MODE constants to scoped enum" Change-Id: Iafb6b1643920eb066a2d50150f408161331f9d04 diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 2e32a0e..0d055ec 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); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
