summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r--vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx7
-rw-r--r--vcl/unx/gtk3/fpicker/SalGtkPicker.cxx17
-rw-r--r--vcl/unx/gtk3/fpicker/SalGtkPicker.hxx6
-rw-r--r--vcl/unx/gtk3/gtkcairo.cxx5
-rw-r--r--vcl/unx/gtk3/gtkcairo.hxx2
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx5
6 files changed, 23 insertions, 19 deletions
diff --git a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
index 183ea20a0a4a..21ccd7cfab1a 100644
--- a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
@@ -43,6 +43,7 @@
#include <unx/gtk/gtkdata.hxx>
#include <unx/gtk/gtkinst.hxx>
+#include <utility>
#include <vcl/svapp.hxx>
#include <o3tl/string_view.hxx>
@@ -367,9 +368,9 @@ protected:
css::uno::Sequence< css::beans::StringPair > m_aSubFilters;
public:
- FilterEntry( const OUString& _rTitle, const OUString& _rFilter )
- :m_sTitle( _rTitle )
- ,m_sFilter( _rFilter )
+ FilterEntry( OUString _aTitle, OUString _aFilter )
+ :m_sTitle(std::move( _aTitle ))
+ ,m_sFilter(std::move( _aFilter ))
{
}
diff --git a/vcl/unx/gtk3/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkPicker.cxx
index 68172ad10f94..5810a545f4ea 100644
--- a/vcl/unx/gtk3/fpicker/SalGtkPicker.cxx
+++ b/vcl/unx/gtk3/fpicker/SalGtkPicker.cxx
@@ -30,6 +30,7 @@
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <osl/diagnose.h>
#include <sal/log.hxx>
+#include <utility>
#include <vcl/svapp.hxx>
#include <tools/urlobj.hxx>
@@ -104,13 +105,13 @@ GtkWindow* RunDialog::GetTransientFor()
return GTK_WINDOW(widget_get_toplevel(pFrame->getWindow()));
}
-RunDialog::RunDialog(GtkWidget *pDialog, const uno::Reference<awt::XExtendedToolkit>& rToolkit,
- const uno::Reference<frame::XDesktop>& rDesktop)
+RunDialog::RunDialog(GtkWidget *pDialog, uno::Reference<awt::XExtendedToolkit> xToolkit,
+ uno::Reference<frame::XDesktop> xDesktop)
: cppu::WeakComponentImplHelper<awt::XTopWindowListener, frame::XTerminateListener>(maLock)
, mpDialog(pDialog)
, mbTerminateDesktop(false)
- , mxToolkit(rToolkit)
- , mxDesktop(rDesktop)
+ , mxToolkit(std::move(xToolkit))
+ , mxDesktop(std::move(xDesktop))
{
}
@@ -168,8 +169,8 @@ namespace
private:
css::uno::Reference<css::frame::XDesktop> mxDesktop;
public:
- ExecuteInfo(const css::uno::Reference<css::frame::XDesktop>& rDesktop)
- : mxDesktop(rDesktop)
+ ExecuteInfo(css::uno::Reference<css::frame::XDesktop> xDesktop)
+ : mxDesktop(std::move(xDesktop))
{
}
void terminate()
@@ -225,10 +226,10 @@ IMPL_STATIC_LINK(RunDialog, TerminateDesktop, void*, p, void)
delete pExecuteInfo;
}
-SalGtkPicker::SalGtkPicker( const uno::Reference<uno::XComponentContext>& xContext )
+SalGtkPicker::SalGtkPicker( uno::Reference<uno::XComponentContext> xContext )
: m_pParentWidget(nullptr)
, m_pDialog(nullptr)
- , m_xContext(xContext)
+ , m_xContext(std::move(xContext))
{
}
diff --git a/vcl/unx/gtk3/fpicker/SalGtkPicker.hxx b/vcl/unx/gtk3/fpicker/SalGtkPicker.hxx
index 7da0ba04e31c..cb11445dae79 100644
--- a/vcl/unx/gtk3/fpicker/SalGtkPicker.hxx
+++ b/vcl/unx/gtk3/fpicker/SalGtkPicker.hxx
@@ -51,7 +51,7 @@
class SalGtkPicker
{
public:
- SalGtkPicker( const css::uno::Reference<css::uno::XComponentContext>& xContext );
+ SalGtkPicker( css::uno::Reference<css::uno::XComponentContext> xContext );
virtual ~SalGtkPicker();
protected:
osl::Mutex m_rbHelperMtx;
@@ -113,8 +113,8 @@ public:
virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent ) override;
public:
RunDialog(GtkWidget *pDialog,
- const css::uno::Reference<css::awt::XExtendedToolkit>& rToolkit,
- const css::uno::Reference<css::frame::XDesktop>& rDesktop);
+ css::uno::Reference<css::awt::XExtendedToolkit> xToolkit,
+ css::uno::Reference<css::frame::XDesktop> xDesktop);
virtual ~RunDialog() override;
gint run();
void cancel();
diff --git a/vcl/unx/gtk3/gtkcairo.cxx b/vcl/unx/gtk3/gtkcairo.cxx
index 202e3244d617..b77711384ac2 100644
--- a/vcl/unx/gtk3/gtkcairo.cxx
+++ b/vcl/unx/gtk3/gtkcairo.cxx
@@ -9,6 +9,7 @@
#include "gtkcairo.hxx"
+#include <utility>
#include <vcl/sysdata.hxx>
#include <vcl/virdev.hxx>
@@ -38,10 +39,10 @@ namespace cairo
*
* Set the mpSurface as pSurface
**/
- Gtk3Surface::Gtk3Surface(const CairoSurfaceSharedPtr& pSurface)
+ Gtk3Surface::Gtk3Surface(CairoSurfaceSharedPtr pSurface)
: mpGraphics(nullptr)
, cr(nullptr)
- , mpSurface(pSurface)
+ , mpSurface(std::move(pSurface))
{}
/**
diff --git a/vcl/unx/gtk3/gtkcairo.hxx b/vcl/unx/gtk3/gtkcairo.hxx
index 1b4ed6d32c01..c5912181fc21 100644
--- a/vcl/unx/gtk3/gtkcairo.hxx
+++ b/vcl/unx/gtk3/gtkcairo.hxx
@@ -25,7 +25,7 @@ namespace cairo {
CairoSurfaceSharedPtr mpSurface;
public:
/// takes over ownership of passed cairo_surface
- explicit Gtk3Surface(const CairoSurfaceSharedPtr& pSurface);
+ explicit Gtk3Surface(CairoSurfaceSharedPtr pSurface);
/// create surface on subarea of given drawable
explicit Gtk3Surface(const GtkSalGraphics* pGraphics, int x, int y, int width, int height);
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 1b4809fb57a2..4bd3573bb420 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -27,6 +27,7 @@
#include <unx/gtk/gtksalmenu.hxx>
#include <headless/svpvd.hxx>
#include <headless/svpbmp.hxx>
+#include <utility>
#include <vcl/builder.hxx>
#include <vcl/inputtypes.hxx>
#include <vcl/specialchars.hxx>
@@ -17622,10 +17623,10 @@ private:
DECL_LINK(SettingsChangedHdl, VclWindowEvent&, void);
public:
- GtkInstanceDrawingArea(GtkDrawingArea* pDrawingArea, GtkInstanceBuilder* pBuilder, const a11yref& rA11y, bool bTakeOwnership)
+ GtkInstanceDrawingArea(GtkDrawingArea* pDrawingArea, GtkInstanceBuilder* pBuilder, a11yref xA11y, bool bTakeOwnership)
: GtkInstanceWidget(GTK_WIDGET(pDrawingArea), pBuilder, bTakeOwnership)
, m_pDrawingArea(pDrawingArea)
- , m_xAccessible(rA11y)
+ , m_xAccessible(std::move(xA11y))
#if !GTK_CHECK_VERSION(4, 0, 0)
, m_pAccessible(nullptr)
#endif