From a6b91730053fc61416716ae176081b91de52532b Mon Sep 17 00:00:00 2001 From: nccuong Date: Mon, 4 Mar 2013 15:25:02 +0100 Subject: 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 Tested-by: Eike Rathke --- filter/source/config/cache/filterfactory.cxx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'filter/source/config/cache') 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" ); -- cgit