diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-10-12 07:45:01 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-12 06:52:56 +0000 |
commit | ccc5ea08d64c38a9ce925d448c3010aca19ed35c (patch) | |
tree | e50c45ee596185f9a030641465796394c71ad410 /filter | |
parent | Related tdf#45775: PgSQL new DB allow empty Datasource (diff) | |
download | core-ccc5ea08d64c38a9ce925d448c3010aca19ed35c.tar.gz core-ccc5ea08d64c38a9ce925d448c3010aca19ed35c.zip |
cppcheck:variableScope
Change-Id: I037feb335499629300309851dcda3bb661f03d4f
Reviewed-on: https://gerrit.libreoffice.org/19316
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/epict/epict.cxx | 3 | ||||
-rw-r--r-- | filter/source/svg/svgexport.cxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/epict/epict.cxx b/filter/source/graphicfilter/epict/epict.cxx index 267488b487f8..27c9d97bbf93 100644 --- a/filter/source/graphicfilter/epict/epict.cxx +++ b/filter/source/graphicfilter/epict/epict.cxx @@ -872,7 +872,7 @@ void PictWriter::WriteOpcode_BitsRect(const Point & rPoint, const Size & rSize, sal_uLong nWidth, nHeight, nDstRowBytes, nx, nc, ny, nCount, nColTabSize, i; sal_uLong nDstRowPos, nEqu3, nPos, nDstMapPos; sal_uInt16 nBitsPerPixel, nPackType; - sal_uInt8 *pComp[4], *pTemp; + sal_uInt8 *pComp[4]; sal_uInt8 nEquData = 0; sal_uInt8 nFlagCounterByte, nRed, nGreen, nBlue; @@ -1149,6 +1149,7 @@ void PictWriter::WriteOpcode_BitsRect(const Point & rPoint, const Size & rSize, // loop through rows: for ( ny = 0; ny < nHeight; ny++ ) { + sal_uInt8* pTemp; // read line ny of source into the buffer: switch ( nBitsPerPixel ) { diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index fbef0ea27483..071b7a7fe663 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -1025,7 +1025,6 @@ bool SVGFilter::implGenerateMetaData() bool bPageNumberVisibility = false; // default: hidden bool bDateTimeVisibility = true; // default: visible bool bFooterVisibility = true; // default: visible - bool bDateTimeFixed = true; // default: fixed /* * Page Number Field @@ -1042,6 +1041,7 @@ bool SVGFilter::implGenerateMetaData() xPropSet->getPropertyValue( "IsDateTimeVisible" ) >>= bDateTimeVisibility; if( bDateTimeVisibility ) // visibility default value: 'visible' { + bool bDateTimeFixed = true; // default: fixed xPropSet->getPropertyValue( "IsDateTimeFixed" ) >>= bDateTimeFixed; if( bDateTimeFixed ) // we are interested only in the field text not in the date/time format { |