summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-01-28 17:19:17 +0000
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2017-01-28 17:27:35 +0000
commitd817456fb0f5c55ea47c16a18c44da107a24b906 (patch)
treeb56c186a000ab7c351b008c590fcc6253ea06131 /vcl/unx
parent681c329b7f70ed53f7d188834bc2aa3a154bc22d (diff)
loplugin:stringconstant
Change-Id: I4e2e0aba2930d7c4ee60567d1d65e0e773a470bf Reviewed-on: https://gerrit.libreoffice.org/33650 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/kde/UnxFilePicker.cxx8
-rw-r--r--vcl/unx/kde4/KDE4FilePicker.cxx6
2 files changed, 7 insertions, 7 deletions
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<uno::Any> &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<sal_Int16>::get()) && ( aAny.getValueType() != cppu::UnoType<sal_Int8>::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<uno::Any> &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<uno::Any> &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<uno::Any> &args )
( arg.getValueType() != cppu::UnoType<sal_Int8>::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<uno::Any> &args )
default:
throw lang::IllegalArgumentException(
- OUString( "Unknown template" ),
+ "Unknown template",
static_cast< XFilePicker2* >( this ),
1 );
}