diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-09-30 17:25:10 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-09-30 17:34:27 +0200 |
commit | 78f7b8f67a7765fe103dbe1ac6b0e02ff6d5939b (patch) | |
tree | 3d971e651863032920edc6d9213d673735fcda79 | |
parent | b98434d0170f2c1ff5b60f74d871ada81d897647 (diff) |
vcl: use DBG_UTIL for additional members in SolarMutexTryAndBuyGuard
... for consistency, and to keep the ODR police away.
Change-Id: Id4bf23be1e57cc29dfed9331d75034a33c2910f8
-rw-r--r-- | include/vcl/svapp.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 64225eccf69c..68dd3c7eebde 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -1669,7 +1669,7 @@ class SolarMutexTryAndBuyGuard { private: bool m_isAcquired; -#if OSL_DEBUG_LEVEL > 0 +#ifdef DBG_UTIL bool m_isChecked; #endif comphelper::SolarMutex& m_rSolarMutex; @@ -1678,7 +1678,7 @@ class SolarMutexTryAndBuyGuard SolarMutexTryAndBuyGuard() : m_isAcquired(false) -#if OSL_DEBUG_LEVEL > 0 +#ifdef DBG_UTIL , m_isChecked(false) #endif , m_rSolarMutex(Application::GetSolarMutex()) @@ -1689,7 +1689,7 @@ class SolarMutexTryAndBuyGuard ~SolarMutexTryAndBuyGuard() { -#if OSL_DEBUG_LEVEL > 0 +#ifdef DBG_UTIL assert(m_isChecked); #endif if (m_isAcquired) @@ -1698,7 +1698,7 @@ class SolarMutexTryAndBuyGuard bool isAcquired() { -#if OSL_DEBUG_LEVEL > 0 +#ifdef DBG_UTIL m_isChecked = true; #endif return m_isAcquired; |