summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLPlotAreaContext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-24 13:35:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-24 13:35:36 +0200
commita41ecf922771904cdebf17b29066389441716b2c (patch)
treee1579addc718e30db872f3dcc030861031393f7e /xmloff/source/chart/SchXMLPlotAreaContext.cxx
parent258d039798b9ca4cc95a14d62e30bb725ad2c8ec (diff)
loplugin:expandablemethods in xmloff
Change-Id: I995a4167ac4df5ca35d963dcf68ae802a997e1e1
Diffstat (limited to 'xmloff/source/chart/SchXMLPlotAreaContext.cxx')
-rw-r--r--xmloff/source/chart/SchXMLPlotAreaContext.cxx11
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;