summaryrefslogtreecommitdiff
path: root/include/o3tl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-30 19:37:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-30 19:37:34 +0200
commit78e95e46bbc60fd14160eb22a7a876aa32ca9b87 (patch)
treeaeaadb9dae85c3fd588f8546be9e32c6d59160a1 /include/o3tl
parentd4cac4de650ee9339b7e513c8762bfce6574af76 (diff)
loplugin:simplifybool
Change-Id: I5bfc2a84cef68421757e9aa8f5e4bcb1d6caf7bf
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/cow_wrapper.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/o3tl/cow_wrapper.hxx b/include/o3tl/cow_wrapper.hxx
index a5edebf46cd0..f3db60eba213 100644
--- a/include/o3tl/cow_wrapper.hxx
+++ b/include/o3tl/cow_wrapper.hxx
@@ -286,7 +286,7 @@ int cow_wrapper_client::queryUnmodified() const
/// true, if not shared with any other cow_wrapper instance
bool is_unique() const // nothrow
{
- return m_pimpl ? m_pimpl->m_ref_count == 1 : true;
+ return !m_pimpl || m_pimpl->m_ref_count == 1;
}
/// return number of shared instances (1 for unique object)