From d817456fb0f5c55ea47c16a18c44da107a24b906 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sat, 28 Jan 2017 17:19:17 +0000 Subject: loplugin:stringconstant Change-Id: I4e2e0aba2930d7c4ee60567d1d65e0e773a470bf Reviewed-on: https://gerrit.libreoffice.org/33650 Reviewed-by: Jochen Nitschke Tested-by: Jochen Nitschke --- vcl/unx/kde/UnxFilePicker.cxx | 8 ++++---- vcl/unx/kde4/KDE4FilePicker.cxx | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'vcl/unx') diff --git a/vcl/unx/kde/UnxFilePicker.cxx b/vcl/unx/kde/UnxFilePicker.cxx index 3ec3e18cc477..b6b9da2ed88e 100644 --- a/vcl/unx/kde/UnxFilePicker.cxx +++ b/vcl/unx/kde/UnxFilePicker.cxx @@ -615,14 +615,14 @@ void SAL_CALL UnxFilePicker::initialize( const uno::Sequence &rArgumen uno::Any aAny; if ( 0 == rArguments.getLength( ) ) throw lang::IllegalArgumentException( - OUString( "no arguments" ), + "no arguments", static_cast< XFilePicker2* >( this ), 1 ); aAny = rArguments[0]; if ( ( aAny.getValueType() != cppu::UnoType::get()) && ( aAny.getValueType() != cppu::UnoType::get()) ) throw lang::IllegalArgumentException( - OUString( "invalid argument type" ), + "invalid argument type", static_cast< XFilePicker2* >( this ), 1 ); sal_Int16 templateId = -1; @@ -719,7 +719,7 @@ void SAL_CALL UnxFilePicker::initialize( const uno::Sequence &rArgumen default: throw lang::IllegalArgumentException( - OUString( "Unknown template" ), + "Unknown template", static_cast< XFilePicker2* >( this ), 1 ); } @@ -853,7 +853,7 @@ void UnxFilePicker::checkFilePicker() else { throw uno::RuntimeException( - OUString( "the external file picker does not run" ), + "the external file picker does not run", *this ); } } diff --git a/vcl/unx/kde4/KDE4FilePicker.cxx b/vcl/unx/kde4/KDE4FilePicker.cxx index 4576076dcaf8..70f2b7e16de3 100644 --- a/vcl/unx/kde4/KDE4FilePicker.cxx +++ b/vcl/unx/kde4/KDE4FilePicker.cxx @@ -626,7 +626,7 @@ void SAL_CALL KDE4FilePicker::initialize( const uno::Sequence &args ) if (args.getLength() == 0) { throw lang::IllegalArgumentException( - OUString( "no arguments" ), + "no arguments", static_cast< XFilePicker2* >( this ), 1 ); } @@ -636,7 +636,7 @@ void SAL_CALL KDE4FilePicker::initialize( const uno::Sequence &args ) ( arg.getValueType() != cppu::UnoType::get())) { throw lang::IllegalArgumentException( - OUString( "invalid argument type" ), + "invalid argument type", static_cast< XFilePicker2* >( this ), 1 ); } @@ -717,7 +717,7 @@ void SAL_CALL KDE4FilePicker::initialize( const uno::Sequence &args ) default: throw lang::IllegalArgumentException( - OUString( "Unknown template" ), + "Unknown template", static_cast< XFilePicker2* >( this ), 1 ); } -- cgit