diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:12:03 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:12:03 +0100 |
commit | 0731f13cb9e272d8a8d4ea172d9eb8a7608d990d (patch) | |
tree | 7cb19c91930078284b120995d3cb8f05442ed6c9 | |
parent | 0680fc5195287648793f4d0a4d54b3c9b655d5d3 (diff) |
New loplugin:conststringvar: filter
Change-Id: Ic20fc4966ed1a68bff4f9c68debd603145a89321
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 2 | ||||
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index c7d31c423a91..80e09f92b8a1 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -4283,7 +4283,7 @@ sal_uInt32 EscherGraphicProvider::GetBlibID( SvStream& rPicOutStrm, const OStrin { // to store a animation, a gif has to be included into the msOG chunk of a png #I5583# GraphicFilter &rFilter = GraphicFilter::GetGraphicFilter(); SvMemoryStream aGIFStream; - const char* pString = "MSOFFICE9.0"; + const char* const pString = "MSOFFICE9.0"; aGIFStream.WriteBytes(pString, strlen(pString)); nErrCode = rFilter.ExportGraphic( aGraphic, OUString(), aGIFStream, rFilter.GetExportFormatNumberForShortName( "GIF" ) ); diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 651e94b25a12..dd11def3c584 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -2743,7 +2743,7 @@ void DffPropertyReader::CheckAndCorrectExcelTextRotation( SvStream& rIn, SfxItem bRotateTextWithShape = true; // using the correct xml default const char* pArry = reinterpret_cast< char* >( aSeq.getArray() ); - const char* pUpright = "upright="; + const char* const pUpright = "upright="; const char* pEnd = pArry + nBytesRead; const char* pPtr = pArry; while( ( pPtr + 12 ) < pEnd ) |