summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-06 13:39:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-06 15:45:14 +0100
commitd5b55513cdc05e8d622897201e233eb0ad5147b7 (patch)
tree4bd23ff2d444b876ef7cdbe3c4053929d7884d94 /include
parent95911bf6b8ae0d13f0c3cfc93c06badff822eefb (diff)
loplugin:passstuffbyref in basic
Change-Id: I1aee08f0ff2a3dabcedc49a31e7ff4de9428007e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176136 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/basic/basmgr.hxx2
-rw-r--r--include/basic/sbdef.hxx2
-rw-r--r--include/basic/sbstar.hxx2
-rw-r--r--include/basic/sbx.hxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx
index c9633425c4bc..b650c6f6cba7 100644
--- a/include/basic/basmgr.hxx
+++ b/include/basic/basmgr.hxx
@@ -127,7 +127,7 @@ public:
StarBASIC* GetLib( std::u16string_view rName ) const;
sal_uInt16 GetLibId( std::u16string_view rName ) const;
- OUString GetLibName( sal_uInt16 nLib );
+ const OUString & GetLibName( sal_uInt16 nLib );
/** announces the library containers which belong to this BasicManager
diff --git a/include/basic/sbdef.hxx b/include/basic/sbdef.hxx
index 0fe4ce52b686..a82fc1c9461d 100644
--- a/include/basic/sbdef.hxx
+++ b/include/basic/sbdef.hxx
@@ -28,7 +28,7 @@ class ErrCode;
// Returns type name for Basic type, array flag is ignored
// implementation: basic/source/runtime/methods.cxx
-BASIC_DLLPUBLIC OUString getBasicTypeName( SbxDataType eType );
+BASIC_DLLPUBLIC const OUString & getBasicTypeName( SbxDataType eType );
// Returns type name for Basic objects, especially
// important for SbUnoObj instances
diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx
index 5c4779de5949..f75845e93be7 100644
--- a/include/basic/sbstar.hxx
+++ b/include/basic/sbstar.hxx
@@ -93,7 +93,7 @@ public:
static bool IsRunning();
static ErrCode GetErrBasic();
// #66536 make additional message accessible by RTL function Error
- static OUString GetErrorMsg();
+ static const OUString & GetErrorMsg();
static sal_Int32 GetErl();
virtual SbxVariable* Find( const OUString&, SbxClassType ) override;
diff --git a/include/basic/sbx.hxx b/include/basic/sbx.hxx
index eb9007232391..dc4fdb7934e3 100644
--- a/include/basic/sbx.hxx
+++ b/include/basic/sbx.hxx
@@ -122,7 +122,7 @@ public:
void Remove( sal_uInt32 );
void Remove( SbxVariable const * );
void Merge( SbxArray* );
- OUString GetAlias(sal_uInt32);
+ const OUString & GetAlias(sal_uInt32);
void PutAlias(const OUString&, sal_uInt32);
SbxVariable* Find( const OUString&, SbxClassType );
};