summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-18 09:22:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-27 06:48:25 +0000
commit508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch)
treed1c8626818cbf26a699875ae2d82f751a1657e92 /rsc
parent9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff)
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c Reviewed-on: https://gerrit.libreoffice.org/27317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'rsc')
-rw-r--r--rsc/inc/rsctop.hxx2
-rw-r--r--rsc/source/parser/rscdb.cxx4
-rw-r--r--rsc/source/res/rsctop.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/rsc/inc/rsctop.hxx b/rsc/inc/rsctop.hxx
index 59e4e077f686..6d571145ced7 100644
--- a/rsc/inc/rsctop.hxx
+++ b/rsc/inc/rsctop.hxx
@@ -61,7 +61,7 @@ public:
const OString& rParType );
RscTop* GetRefClass() const { return pRefClass; }
virtual RSCCLASS_TYPE GetClassType() const = 0;
- RSCINST GetDefault();
+ RSCINST const & GetDefault();
// preparation fro the destructor call
// given that classes can have mutual dependencies,
diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx
index b0e48074aec5..c96b7f172cd9 100644
--- a/rsc/source/parser/rscdb.cxx
+++ b/rsc/source/parser/rscdb.cxx
@@ -403,13 +403,13 @@ public:
aEnumObj.fOutput = fOutput;
pRoot = pR;
}
- ERRTYPE WriteRc()
+ ERRTYPE const & WriteRc()
{
aEnumObj.aError.Clear();
pRoot->EnumNodes( LINK( this, RscEnumerateRef, CallBackWriteRc ) );
return aEnumObj.aError;
}
- ERRTYPE WriteSrc( sal_uLong lFileKey )
+ ERRTYPE const & WriteSrc( sal_uLong lFileKey )
{
aEnumObj.lFileKey = lFileKey;
diff --git a/rsc/source/res/rsctop.cxx b/rsc/source/res/rsctop.cxx
index 04cc8a6358cf..47fa95a7f1bd 100644
--- a/rsc/source/res/rsctop.cxx
+++ b/rsc/source/res/rsctop.cxx
@@ -41,7 +41,7 @@ void RscTop::SetCallPar(const OString& rPar1, const OString& rPar2,
aCallParType = rParType;
}
-RSCINST RscTop::GetDefault()
+RSCINST const & RscTop::GetDefault()
{
if( !aDfltInst.IsInst() )
aDfltInst = this->Create( nullptr, RSCINST() );