diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 15:16:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-06 09:21:58 +0000 |
commit | 0c82dff153d92150729815b919854a9a350aa031 (patch) | |
tree | 9bda3cba13d9534460b2fe7919b00009e8ffd425 /oox/source/drawingml/table | |
parent | 9458ce11084579b020650fecb1165052c16ee556 (diff) |
loplugin:singlevalfields
Change-Id: Ia681765aa1da5c80a3dbe91b7376af841a9c9ec1
Reviewed-on: https://gerrit.libreoffice.org/36145
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/drawingml/table')
-rw-r--r-- | oox/source/drawingml/table/tablecontext.cxx | 13 | ||||
-rw-r--r-- | oox/source/drawingml/table/tableproperties.cxx | 3 |
2 files changed, 7 insertions, 9 deletions
diff --git a/oox/source/drawingml/table/tablecontext.cxx b/oox/source/drawingml/table/tablecontext.cxx index 9e4cd315e62f..c3c5f48b18a9 100644 --- a/oox/source/drawingml/table/tablecontext.cxx +++ b/oox/source/drawingml/table/tablecontext.cxx @@ -50,13 +50,12 @@ TableContext::onCreateContext( ::sal_Int32 aElementToken, const AttributeList& r { case A_TOKEN( tblPr ): // CT_TableProperties { - mrTableProperties.isRtl() = rAttribs.getBool( XML_rtl, false ); - mrTableProperties.isFirstRow() = rAttribs.getBool( XML_firstRow, false ); - mrTableProperties.isFirstCol() = rAttribs.getBool( XML_firstCol, false ); - mrTableProperties.isLastRow() = rAttribs.getBool( XML_lastRow, false ); - mrTableProperties.isLastCol() = rAttribs.getBool( XML_lastCol, false ); - mrTableProperties.isBandRow() = rAttribs.getBool( XML_bandRow, false ); - mrTableProperties.isBandCol() = rAttribs.getBool( XML_bandCol, false ); + mrTableProperties.setFirstRow( rAttribs.getBool( XML_firstRow, false ) ); + mrTableProperties.setFirstCol( rAttribs.getBool( XML_firstCol, false ) ); + mrTableProperties.setLastRow( rAttribs.getBool( XML_lastRow, false ) ); + mrTableProperties.setLastCol( rAttribs.getBool( XML_lastCol, false ) ); + mrTableProperties.setBandRow( rAttribs.getBool( XML_bandRow, false ) ); + mrTableProperties.setBandCol( rAttribs.getBool( XML_bandCol, false ) ); } break; case A_TOKEN( tableStyle ): // CT_TableStyle diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx index 053572a7bc08..d4c5bdc56d39 100644 --- a/oox/source/drawingml/table/tableproperties.cxx +++ b/oox/source/drawingml/table/tableproperties.cxx @@ -40,8 +40,7 @@ using namespace ::com::sun::star::table; namespace oox { namespace drawingml { namespace table { TableProperties::TableProperties() -: mbRtl( false ) -, mbFirstRow( false ) +: mbFirstRow( false ) , mbFirstCol( false ) , mbLastRow( false ) , mbLastCol( false ) |