summaryrefslogtreecommitdiff
path: root/rsc/source
diff options
context:
space:
mode:
Diffstat (limited to 'rsc/source')
-rw-r--r--rsc/source/parser/rscdb.cxx4
-rw-r--r--rsc/source/res/rsctop.cxx2
2 files changed, 3 insertions, 3 deletions
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() );