diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-24 13:35:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-24 13:35:36 +0200 |
commit | a41ecf922771904cdebf17b29066389441716b2c (patch) | |
tree | e1579addc718e30db872f3dcc030861031393f7e /xmloff/source/chart/SchXMLPlotAreaContext.cxx | |
parent | 258d039798b9ca4cc95a14d62e30bb725ad2c8ec (diff) |
loplugin:expandablemethods in xmloff
Change-Id: I995a4167ac4df5ca35d963dcf68ae802a997e1e1
Diffstat (limited to 'xmloff/source/chart/SchXMLPlotAreaContext.cxx')
-rw-r--r-- | xmloff/source/chart/SchXMLPlotAreaContext.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index fe33c1bc4ef9..48a5a9a9f05f 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -666,18 +666,11 @@ SchXMLPositionAttributesHelper::~SchXMLPositionAttributesHelper() { } -bool SchXMLPositionAttributesHelper::hasSize() const -{ - return m_bHasSizeWidth && m_bHasSizeHeight; -} -bool SchXMLPositionAttributesHelper::hasPosition() const -{ - return m_bHasPositionX && m_bHasPositionY; -} bool SchXMLPositionAttributesHelper::hasPosSize() const { - return hasPosition() && hasSize(); + return (m_bHasPositionX && m_bHasPositionY) && (m_bHasSizeWidth && m_bHasSizeHeight); } + bool SchXMLPositionAttributesHelper::isAutomatic() const { return m_bAutoSize || m_bAutoPosition; |