summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 20:02:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:26:29 +0100
commitc68a8f45581394a349f76aaece3b1f0ad65acd8f (patch)
tree58ba33c8c8c744be772dbb947bea4579607eda79 /cppuhelper
parentee883319f2fd2aa5494597d2b53e60d6343c787e (diff)
bool improvements
Change-Id: Iaf63fd2282ce8de4f4c3dc7120afe1bc0613228a
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/exc_thrower.cxx2
-rw-r--r--cppuhelper/source/weak.cxx12
2 files changed, 7 insertions, 7 deletions
diff --git a/cppuhelper/source/exc_thrower.cxx b/cppuhelper/source/exc_thrower.cxx
index 7a3222066c83..70a227410cf5 100644
--- a/cppuhelper/source/exc_thrower.cxx
+++ b/cppuhelper/source/exc_thrower.cxx
@@ -119,7 +119,7 @@ static void SAL_CALL ExceptionThrower_dispatch(
}
default:
{
- OSL_ASSERT( 0 );
+ OSL_ASSERT( false );
RuntimeException exc(
"not implemented!", Reference< XInterface >() );
uno_type_any_construct(
diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx
index 8bba4da4101b..1429f64c81ba 100644
--- a/cppuhelper/source/weak.cxx
+++ b/cppuhelper/source/weak.cxx
@@ -353,7 +353,7 @@ OWeakRefListener::OWeakRefListener(const OWeakRefListener& rRef) SAL_THROW(())
m_XWeakConnectionPoint->addReference((XReference*)this);
}
}
- catch (RuntimeException &) { OSL_ASSERT( 0 ); } // assert here, but no unexpected()
+ catch (RuntimeException &) { OSL_ASSERT( false ); } // assert here, but no unexpected()
osl_atomic_decrement( &m_aRefCount );
}
@@ -374,7 +374,7 @@ OWeakRefListener::OWeakRefListener(const Reference< XInterface >& xInt) SAL_THRO
}
}
}
- catch (RuntimeException &) { OSL_ASSERT( 0 ); } // assert here, but no unexpected()
+ catch (RuntimeException &) { OSL_ASSERT( false ); } // assert here, but no unexpected()
osl_atomic_decrement( &m_aRefCount );
}
@@ -388,7 +388,7 @@ OWeakRefListener::~OWeakRefListener() SAL_THROW(())
m_XWeakConnectionPoint->removeReference((XReference*)this);
}
}
- catch (RuntimeException &) { OSL_ASSERT( 0 ); } // assert here, but no unexpected()
+ catch (RuntimeException &) { OSL_ASSERT( false ); } // assert here, but no unexpected()
}
// XInterface
@@ -468,7 +468,7 @@ void WeakReferenceHelper::clear() SAL_THROW(())
m_pImpl = 0;
}
}
- catch (RuntimeException &) { OSL_ASSERT( 0 ); } // assert here, but no unexpected()
+ catch (RuntimeException &) { OSL_ASSERT( false ); } // assert here, but no unexpected()
}
WeakReferenceHelper& WeakReferenceHelper::operator=(const WeakReferenceHelper& rWeakRef) SAL_THROW(())
@@ -494,7 +494,7 @@ SAL_THROW(())
m_pImpl->acquire();
}
}
- catch (RuntimeException &) { OSL_ASSERT( 0 ); } // assert here, but no unexpected()
+ catch (RuntimeException &) { OSL_ASSERT( false ); } // assert here, but no unexpected()
return *this;
}
@@ -517,7 +517,7 @@ Reference< XInterface > WeakReferenceHelper::get() const SAL_THROW(())
if (xAdp.is())
return xAdp->queryAdapted();
}
- catch (RuntimeException &) { OSL_ASSERT( 0 ); } // assert here, but no unexpected()
+ catch (RuntimeException &) { OSL_ASSERT( false ); } // assert here, but no unexpected()
return Reference< XInterface >();
}