diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:34 +0100 |
commit | 36328248309ebebee616452248d55923280deabb (patch) | |
tree | 3aec7576114f445dfe77ee1b59e332cf1f5fdc6c /vcl/unx/gtk | |
parent | 4d6b9053a437dc128d186f8d100ef4a351136f54 (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I7ac150458a72963f3336d30ef9d99d7c0d81c024
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkPicker.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/gdi/salprn-gtk.cxx | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx index 0b4ccda90023..78682cb738aa 100644 --- a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx +++ b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx @@ -72,7 +72,7 @@ void SAL_CALL SalGtkFolderPicker::setDisplayDirectory( const OUString& aDirector OString aTxt = unicodetouri( aDirectory ); if( aTxt.isEmpty() ){ - aTxt = unicodetouri(OUString("file:///.")); + aTxt = unicodetouri("file:///."); } if( aTxt.endsWith("/") ) diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx index 87c41b210b65..a071bdaee5a6 100644 --- a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx +++ b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx @@ -211,7 +211,7 @@ void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const OUString& aDirectory OString aTxt = unicodetouri(aDirectory); if( aTxt.isEmpty() ){ - aTxt = unicodetouri(OUString("file:///.")); + aTxt = unicodetouri("file:///."); } if( aTxt.endsWith("/") ) diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx index ce4088bf971f..3615f8c0c4d2 100644 --- a/vcl/unx/gtk/gdi/salprn-gtk.cxx +++ b/vcl/unx/gtk/gdi/salprn-gtk.cxx @@ -1083,9 +1083,9 @@ GtkPrintDialog::impl_readFromSettings() const OUString aPrintDialogStr("PrintDialog"); const OUString aCopyCount(pItem->getValue(aPrintDialogStr, - OUString("CopyCount"))); + "CopyCount")); const OUString aCollate(pItem->getValue(aPrintDialogStr, - OUString("Collate"))); + "Collate")); bool bChanged(false); @@ -1120,10 +1120,10 @@ const const OUString aPrintDialogStr("PrintDialog"); pItem->setValue(aPrintDialogStr, - OUString("CopyCount"), + "CopyCount", OUString::number(m_xWrapper->print_settings_get_n_copies(pSettings))); pItem->setValue(aPrintDialogStr, - OUString("Collate"), + "Collate", m_xWrapper->print_settings_get_collate(pSettings) ? OUString("true") : OUString("false")) |