summaryrefslogtreecommitdiff
path: root/basic/source/classes
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 /basic/source/classes
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 'basic/source/classes')
-rw-r--r--basic/source/classes/sb.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index e2fe5dfb3059..58ded6c8c3d1 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -1712,7 +1712,7 @@ ErrCode StarBASIC::GetErrBasic()
}
// make the additional message for the RTL function error accessible
-OUString StarBASIC::GetErrorMsg()
+const OUString & StarBASIC::GetErrorMsg()
{
if( GetSbData()->pInst )
{
@@ -1720,7 +1720,7 @@ OUString StarBASIC::GetErrorMsg()
}
else
{
- return OUString();
+ return EMPTY_OUSTRING;
}
}