From 78a2020846b855ed925ab88f06fa70a282a75e5a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Mar 2014 08:38:29 +0200 Subject: vcl: prefer passing OUString and OString by reference Change-Id: I6c2c6f597ca62c004ad7dc606cef3a3b10e810b6 --- vcl/unx/generic/app/keysymnames.cxx | 2 +- vcl/unx/gtk/a11y/atkimage.cxx | 2 +- vcl/unx/gtk/a11y/atktable.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/unx') diff --git a/vcl/unx/generic/app/keysymnames.cxx b/vcl/unx/generic/app/keysymnames.cxx index 50c53696acce..a2d411786c28 100644 --- a/vcl/unx/generic/app/keysymnames.cxx +++ b/vcl/unx/generic/app/keysymnames.cxx @@ -474,7 +474,7 @@ namespace vcl_sal { }; // translate keycodes, used within the displayed menu shortcuts - OUString getKeysymReplacementName( OUString pLang, KeySym nSymbol ) + OUString getKeysymReplacementName( const OUString& pLang, KeySym nSymbol ) { for( unsigned int n = 0; n < SAL_N_ELEMENTS(aKeyboards); n++ ) { diff --git a/vcl/unx/gtk/a11y/atkimage.cxx b/vcl/unx/gtk/a11y/atkimage.cxx index b413daae130d..d9f93edc4a9d 100644 --- a/vcl/unx/gtk/a11y/atkimage.cxx +++ b/vcl/unx/gtk/a11y/atkimage.cxx @@ -28,7 +28,7 @@ using namespace ::com::sun::star; // FIXME static G_CONST_RETURN gchar * -getAsConst( OUString rString ) +getAsConst( const OUString& rString ) { static const int nMax = 10; static OString aUgly[nMax]; diff --git a/vcl/unx/gtk/a11y/atktable.cxx b/vcl/unx/gtk/a11y/atktable.cxx index bf30e41eabdb..7094a7caf4b9 100644 --- a/vcl/unx/gtk/a11y/atktable.cxx +++ b/vcl/unx/gtk/a11y/atktable.cxx @@ -45,7 +45,7 @@ atk_object_wrapper_conditional_ref( const uno::Reference< accessibility::XAccess // FIXME static G_CONST_RETURN gchar * -getAsConst( OUString rString ) +getAsConst( const OUString& rString ) { static const int nMax = 10; static OString aUgly[nMax]; -- cgit