summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authornccuong <cao.cuong.ngo@gmail.com>2013-03-04 15:25:02 +0100
committerEike Rathke <erack@redhat.com>2013-03-06 12:59:26 +0000
commita6b91730053fc61416716ae176081b91de52532b (patch)
tree192e578875f9abe82ca535e3cb794944bac9d9aa /filter
parent6374ae0721a5e5da9ed1a477f9642feba01199a6 (diff)
fdo#60148 Clean up warnings from the Clang compiler plugin
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671 loplugin: clean warnings: unused variables, incorrect indentation and log area. Reviewed-on: https://gerrit.libreoffice.org/2544 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/config/cache/filterfactory.cxx18
-rw-r--r--filter/source/graphicfilter/icgm/class2.cxx2
-rw-r--r--filter/source/xsltdialog/xmlfiltertabpagexslt.cxx1
3 files changed, 7 insertions, 14 deletions
diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx
index e6725c1a5fbb..9270a166bc2d 100644
--- a/filter/source/config/cache/filterfactory.cxx
+++ b/filter/source/config/cache/filterfactory.cxx
@@ -260,38 +260,32 @@ OUStringList FilterFactory::impl_queryMatchByDocumentService(const QueryTokenize
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
sDocumentService = ::rtl::OUString( "com.sun.star.text.TextDocument" );
}
- else
- if ( sDocumentService == "web" )
+ else if ( sDocumentService == "web" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
sDocumentService = ::rtl::OUString( "com.sun.star.text.WebDocument" );
}
- else
- if ( sDocumentService == "global" )
+ else if ( sDocumentService == "global" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
sDocumentService = ::rtl::OUString( "com.sun.star.text.GlobalDocument" );
}
- else
- if ( sDocumentService == "calc" )
+ else if ( sDocumentService == "calc" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
sDocumentService = ::rtl::OUString( "com.sun.star.sheet.SpreadsheetDocument" );
}
- else
- if ( sDocumentService == "draw" )
+ else if ( sDocumentService == "draw" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
sDocumentService = ::rtl::OUString( "com.sun.star.drawing.DrawingDocument" );
}
- else
- if ( sDocumentService == "impress" )
+ else if ( sDocumentService == "impress" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
sDocumentService = ::rtl::OUString( "com.sun.star.presentation.PresentationDocument" );
}
- else
- if ( sDocumentService == "math" )
+ else if ( sDocumentService == "math" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
sDocumentService = ::rtl::OUString( "com.sun.star.formula.FormulaProperties" );
diff --git a/filter/source/graphicfilter/icgm/class2.cxx b/filter/source/graphicfilter/icgm/class2.cxx
index 44cf6eaf5f67..2c9e430323a9 100644
--- a/filter/source/graphicfilter/icgm/class2.cxx
+++ b/filter/source/graphicfilter/icgm/class2.cxx
@@ -99,7 +99,7 @@ void CGM::ImplDoClass2()
{
if ( pElement->eVDCType == VDC_INTEGER )
ImplGetRectangle( pElement->aDeviceViewPort );
- ImplSetMapMode();
+ ImplSetMapMode();
}
break;
case 0x09 : /*Device Viewport Specification Mode*/
diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx b/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
index f07c497ad86e..bc6652db7b22 100644
--- a/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
@@ -163,7 +163,6 @@ OUString XMLFilterTabPageXSLT::GetURL( SvtURLBox& rURLBox )
}
else
{
- const OUString aBaseURL ( rURLBox.GetBaseURL() );
osl::FileBase::getFileURLFromSystemPath( aStrPath, aURL );
}