diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:11:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:11:22 +0100 |
commit | 5f225f7f5d069088a9c2f70768f7506ccf3682af (patch) | |
tree | ef23e3358a731b708f52d0dbcec7077fd6da451c | |
parent | 4d6353aa9dcebfb86a26428ad68c7b38b5837d38 (diff) |
New loplugin:conststringvar: oox
Change-Id: Id27e8c51fe87cbe7fa45a68cbaa8196767473b93
-rw-r--r-- | oox/source/export/chartexport.cxx | 4 | ||||
-rw-r--r-- | oox/source/export/drawingml.cxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 1bdd6835ffa4..621a1d0149e6 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2880,7 +2880,7 @@ void ChartExport::_exportAxis( || ( nAxisType == XML_dateAx ) ) { // FIXME: seems not support? use default value, - const char* isAuto = "1"; + const char* const isAuto = "1"; pFS->singleElement( FSNS( XML_c, XML_auto ), XML_val, isAuto, FSEND ); @@ -2888,7 +2888,7 @@ void ChartExport::_exportAxis( if( nAxisType == XML_catAx ) { // FIXME: seems not support? lblAlgn - const char* sLblAlgn = "ctr"; + const char* const sLblAlgn = "ctr"; pFS->singleElement( FSNS( XML_c, XML_lblAlgn ), XML_val, sLblAlgn, FSEND ); diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 8befbca17584..262e8eebd72d 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1408,8 +1408,8 @@ void DrawingML::WriteRunProperties( const Reference< XPropertySet >& rRun, bool if( GETA( CharFontName ) ) { - const char* pitch = nullptr; - const char* charset = nullptr; + const char* const pitch = nullptr; + const char* const charset = nullptr; OUString usTypeface; mAny >>= usTypeface; @@ -1424,8 +1424,8 @@ void DrawingML::WriteRunProperties( const Reference< XPropertySet >& rRun, bool if( ( bComplex && GETAD( CharFontNameComplex ) ) || ( !bComplex && GETAD( CharFontNameAsian ) ) ) { - const char* pitch = nullptr; - const char* charset = nullptr; + const char* const pitch = nullptr; + const char* const charset = nullptr; OUString usTypeface; mAny >>= usTypeface; |