diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-07 17:16:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-08 08:08:35 +0200 |
commit | a209172669e7a2de6065486e385e4e3007b74bd2 (patch) | |
tree | 4a7e008cf700fb23ecc6e4cd44de1c6a08a9b7e7 /vcl/unx/gtk | |
parent | 2675cbf042130f24fe7ea299b85b8f5f4794a667 (diff) |
loplugin:constantparam
Change-Id: Ib92aba17c46a4ada75c2a0630f281759d995f32e
Reviewed-on: https://gerrit.libreoffice.org/40843
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r-- | vcl/unx/gtk/gtksys.cxx | 5 | ||||
-rw-r--r-- | vcl/unx/gtk/salprn-gtk.cxx | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/vcl/unx/gtk/gtksys.cxx b/vcl/unx/gtk/gtksys.cxx index 5c047e4453a8..7e46498e6461 100644 --- a/vcl/unx/gtk/gtksys.cxx +++ b/vcl/unx/gtk/gtksys.cxx @@ -269,8 +269,7 @@ static OString MapToGtkAccelerator(const OUString &rStr) } int GtkSalSystem::ShowNativeDialog (const OUString& rTitle, const OUString& rMessage, - const std::list< OUString >& rButtonNames, - int nDefaultButton) + const std::list< OUString >& rButtonNames) { OString aTitle (OUStringToOString (rTitle, RTL_TEXTENCODING_UTF8)); OString aMessage (OUStringToOString (rMessage, RTL_TEXTENCODING_UTF8)); @@ -285,7 +284,7 @@ int GtkSalSystem::ShowNativeDialog (const OUString& rTitle, const OUString& rMes std::list< OUString >::const_iterator it; for (it = rButtonNames.begin(); it != rButtonNames.end(); ++it) gtk_dialog_add_button (pDialog, MapToGtkAccelerator(*it).getStr(), nButton++); - gtk_dialog_set_default_response (pDialog, nDefaultButton); + gtk_dialog_set_default_response (pDialog, 0/*nDefaultButton*/); nButton = gtk_dialog_run (pDialog); if (nButton < 0) diff --git a/vcl/unx/gtk/salprn-gtk.cxx b/vcl/unx/gtk/salprn-gtk.cxx index 7ffbffb9c939..f82525481731 100644 --- a/vcl/unx/gtk/salprn-gtk.cxx +++ b/vcl/unx/gtk/salprn-gtk.cxx @@ -172,7 +172,6 @@ GtkSalPrinter::impl_doJob( const OUString& i_rJobName, const OUString& i_rAppName, ImplJobSetup* const io_pSetupData, - const int i_nCopies, const bool i_bCollate, vcl::PrinterController& io_rController) { @@ -180,7 +179,7 @@ GtkSalPrinter::impl_doJob( io_rController.jobStarted(); const bool bJobStarted( PspSalPrinter::StartJob(i_pFileName, i_rJobName, i_rAppName, - i_nCopies, i_bCollate, true, io_pSetupData)) + 1/*i_nCopies*/, i_bCollate, true, io_pSetupData)) ; if (bJobStarted) @@ -253,7 +252,7 @@ GtkSalPrinter::StartJob( //To-Do, swap ps/pdf for gtk_printer_accepts_ps()/gtk_printer_accepts_pdf() ? - return impl_doJob(&aFileName, i_rJobName, i_rAppName, io_pSetupData, 1/*nCopies*/, bCollate, io_rController); + return impl_doJob(&aFileName, i_rJobName, i_rAppName, io_pSetupData, bCollate, io_rController); } bool |