summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 19:58:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:26:17 +0100
commitb4c2496f44c29de0185116f86226df911828f51b (patch)
treebd4dd42b7a7f835b210a512302134364393ea11d /include
parentbool improvements (diff)
downloadcore-b4c2496f44c29de0185116f86226df911828f51b.tar.gz
core-b4c2496f44c29de0185116f86226df911828f51b.zip
bool improvements
Change-Id: Ia3fd76aa70564cbc683d0d66cc39aa368bea29d9
Diffstat (limited to 'include')
-rw-r--r--include/tools/bigint.hxx4
-rw-r--r--include/tools/debug.hxx8
-rw-r--r--include/tools/ref.hxx4
3 files changed, 8 insertions, 8 deletions
diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx
index 0206e366400f..f563803a2947 100644
--- a/include/tools/bigint.hxx
+++ b/include/tools/bigint.hxx
@@ -235,7 +235,7 @@ inline bool BigInt::IsNeg() const
inline bool BigInt::IsZero() const
{
if ( bIsBig )
- return sal_False;
+ return false;
else
return (nVal == 0);
}
@@ -243,7 +243,7 @@ inline bool BigInt::IsZero() const
inline bool BigInt::IsOne() const
{
if ( bIsBig )
- return sal_False;
+ return false;
else
return (nVal == 1);
}
diff --git a/include/tools/debug.hxx b/include/tools/debug.hxx
index 7279845db3d8..b1b82bdc85e8 100644
--- a/include/tools/debug.hxx
+++ b/include/tools/debug.hxx
@@ -417,7 +417,7 @@ public:
do \
{ \
DbgTestSolarMutex(); \
-} while(0)
+} while(false)
// en-/disable debug defines
@@ -425,19 +425,19 @@ do \
do \
{ \
DbgGetData()->nTraceOut = nOut; \
-} while(0)
+} while(false)
#define DBG_INSTOUTWARNING( nOut ) \
do \
{ \
DbgGetData()->nWarningOut = nOut; \
-} while(0)
+} while(false)
#define DBG_INSTOUTERROR( nOut ) \
do \
{ \
DbgGetData()->nErrorOut = nOut; \
-} while(0)
+} while(false)
#else
// NO DBG_UITL
diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index 5b51be0bdda1..254b1eb684f0 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -89,8 +89,8 @@ PRV_SV_IMPL_REF_COUNTERS( ClassName, Ref, AddRef(), AddNextRef(),\
ReleaseReference(), pObj )
#define SV_IMPL_LOCK( ClassName ) \
-PRV_SV_IMPL_REF_COUNTERS( ClassName, Lock, OwnerLock( sal_True ), \
- OwnerLock( sal_True ), OwnerLock( sal_False ), \
+PRV_SV_IMPL_REF_COUNTERS( ClassName, Lock, OwnerLock( true ), \
+ OwnerLock( true ), OwnerLock( false ), \
pObj )
#define SV_DECL_IMPL_REF(ClassName) \