diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-24 13:08:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-27 10:44:25 +0100 |
commit | 2e5508a17660401e1b4b489dbc9f70b978745b75 (patch) | |
tree | 881afcf9d8b9f0a653df0c94a8a2deefdf85670e /include | |
parent | 470682b3abf0622f5e9663d62d8641f63ceb6f30 (diff) |
loplugin:unnecessaryparen check for (f1()).f2
Change-Id: I93257b0ddd41c649875124d6d5c5faeaa431bae3
Reviewed-on: https://gerrit.libreoffice.org/45218
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/filter/msfilter/svdfppt.hxx | 2 | ||||
-rw-r--r-- | include/registry/registry.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdmrkv.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index e293d40d0ee0..0af79491692e 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -1139,7 +1139,7 @@ public: TSS_Type nInstanceInSheet, const PPTTextObj* pTextObj ); - sal_uInt32 Count() const { return ( mpFieldItem ) ? 1 : maString.getLength(); }; + sal_uInt32 Count() const { return mpFieldItem ? 1 : maString.getLength(); }; bool HasTabulator(); }; diff --git a/include/registry/registry.hxx b/include/registry/registry.hxx index c36a57f9986a..41e86c07c08d 100644 --- a/include/registry/registry.hxx +++ b/include/registry/registry.hxx @@ -695,7 +695,7 @@ inline bool RegistryKey::isValid() const inline bool RegistryKey::isReadOnly() const { if (m_registry.isValid()) - return (m_registry.m_pApi)->isKeyReadOnly(m_hImpl); + return m_registry.m_pApi->isKeyReadOnly(m_hImpl); else return false; } diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx index b4068bf6e744..e9b19d7b2789 100644 --- a/include/svx/svdmrkv.hxx +++ b/include/svx/svdmrkv.hxx @@ -234,7 +234,7 @@ public: size_t TryToFindMarkedObject(const SdrObject* pObj) const { return GetMarkedObjectList().FindObject(pObj); } SdrPageView* GetSdrPageViewOfMarkedByIndex(size_t nNum) const { return GetMarkedObjectList().GetMark(nNum)->GetPageView(); } SdrMark* GetSdrMarkByIndex(size_t nNum) const { return GetMarkedObjectList().GetMark(nNum); } - SdrObject* GetMarkedObjectByIndex(size_t nNum) const { return (GetMarkedObjectList().GetMark(nNum))->GetMarkedSdrObj(); } + SdrObject* GetMarkedObjectByIndex(size_t nNum) const { return GetMarkedObjectList().GetMark(nNum)->GetMarkedSdrObj(); } size_t GetMarkedObjectCount() const { return GetMarkedObjectList().GetMarkCount(); } void SortMarkedObjects() const { GetMarkedObjectList().ForceSort(); } bool AreObjectsMarked() const { return 0 != GetMarkedObjectList().GetMarkCount(); } |