summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-12 14:00:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-12 14:00:25 +0000
commit0ec2577476fd6633a24d0daab4a7f8848f3fc217 (patch)
tree4b89995b593415c493066b1f0444557386ca9509
parent81e3673b5316527b9ddc5fae04d3e3d7d2f8353e (diff)
loplugin: some unused variables, etc.
Change-Id: I2bf601bae34285675e19551781d4fdaca88d3dc6
-rw-r--r--vcl/source/gdi/gdimtf.cxx1
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx9
2 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 42ed63c0cd31..cd17d51df540 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -3023,7 +3023,6 @@ sal_Bool GDIMetaFile::CreateThumbnail( sal_uInt32 nMaximumExtent,
const Point aBRPix( aVDev.LogicToPixel( Point( GetPrefSize().Width() - 1, GetPrefSize().Height() - 1 ), GetPrefMapMode() ) );
Size aDrawSize( aVDev.LogicToPixel( GetPrefSize(), GetPrefMapMode() ) );
Size aSizePix( labs( aBRPix.X() - aTLPix.X() ) + 1, labs( aBRPix.Y() - aTLPix.Y() ) + 1 );
- Point aPosPix;
if ( !rBmpEx.IsEmpty() )
rBmpEx.SetEmpty();
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index e93b1119162c..e24bf2694d82 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -3376,7 +3376,9 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const Physical
pFontData[nIndex+4] != 'c'
)
)
- nIndex++;
+ {
+ ++nIndex;
+ }
// check whether we are in a excluded section
for( it = aSections.begin(); it != aSections.end() && (nIndex < *it || nIndex > ((*it) + 5) ); ++it )
;
@@ -3705,8 +3707,10 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const Physical
}
if( nStreamObject )
+ {
// write font descriptor
- nFontDescriptor = emitFontDescriptor( pFont, aInfo, 0, nStreamObject );
+ nFontDescriptor = emitFontDescriptor( pFont, aInfo, 0, nStreamObject );
+ }
if( nFontDescriptor )
{
@@ -6797,7 +6801,6 @@ sal_Int32 PDFWriterImpl::emitDocumentMetadata()
bool PDFWriterImpl::emitTrailer()
{
// emit doc info
- OString aInfoValuesOut;
sal_Int32 nDocInfoObject = emitInfoDict( );
sal_Int32 nSecObject = 0;