diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:15:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:38 +0200 |
commit | 918faa4a1647c165cbaf41108858bd33a530c37b (patch) | |
tree | 496141c80224af8230d300633c79134740acbe83 /cppuhelper/source/implbase.cxx | |
parent | e7f330fa4aad63873a552e84bfdbf6452832b007 (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: If965f73934c182a1c96d9fdca6f395c256f6b259
Diffstat (limited to 'cppuhelper/source/implbase.cxx')
-rw-r--r-- | cppuhelper/source/implbase.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx index 635ca10d3e6d..147fe822c091 100644 --- a/cppuhelper/source/implbase.cxx +++ b/cppuhelper/source/implbase.cxx @@ -95,7 +95,7 @@ void WeakComponentImplHelperBase::dispose() ClearableMutexGuard aGuard( rBHelper.rMutex ); if (!rBHelper.bDisposed && !rBHelper.bInDispose) { - rBHelper.bInDispose = sal_True; + rBHelper.bInDispose = true; aGuard.clear(); try { @@ -110,14 +110,14 @@ void WeakComponentImplHelperBase::dispose() { MutexGuard aGuard2( rBHelper.rMutex ); // bDisposed and bInDispose must be set in this order: - rBHelper.bDisposed = sal_True; - rBHelper.bInDispose = sal_False; + rBHelper.bDisposed = true; + rBHelper.bInDispose = false; throw; } MutexGuard aGuard2( rBHelper.rMutex ); // bDisposed and bInDispose must be set in this order: - rBHelper.bDisposed = sal_True; - rBHelper.bInDispose = sal_False; + rBHelper.bDisposed = true; + rBHelper.bInDispose = false; } catch (RuntimeException &) { @@ -227,7 +227,7 @@ void WeakAggComponentImplHelperBase::dispose() ClearableMutexGuard aGuard( rBHelper.rMutex ); if (!rBHelper.bDisposed && !rBHelper.bInDispose) { - rBHelper.bInDispose = sal_True; + rBHelper.bInDispose = true; aGuard.clear(); try { @@ -242,14 +242,14 @@ void WeakAggComponentImplHelperBase::dispose() { MutexGuard aGuard2( rBHelper.rMutex ); // bDisposed and bInDispose must be set in this order: - rBHelper.bDisposed = sal_True; - rBHelper.bInDispose = sal_False; + rBHelper.bDisposed = true; + rBHelper.bInDispose = false; throw; } MutexGuard aGuard2( rBHelper.rMutex ); // bDisposed and bInDispose must be set in this order: - rBHelper.bDisposed = sal_True; - rBHelper.bInDispose = sal_False; + rBHelper.bDisposed = true; + rBHelper.bInDispose = false; } catch (RuntimeException &) { |