include/o3tl/cow_wrapper.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 78e95e46bbc60fd14160eb22a7a876aa32ca9b87
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Sun Aug 30 19:37:34 2015 +0200

    loplugin:simplifybool
    
    Change-Id: I5bfc2a84cef68421757e9aa8f5e4bcb1d6caf7bf

diff --git a/include/o3tl/cow_wrapper.hxx b/include/o3tl/cow_wrapper.hxx
index a5edebf..f3db60e 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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to