summaryrefslogtreecommitdiff
path: root/idl/source/objects/types.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-03 11:31:14 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-06 07:04:50 +0000
commite9c3583c2cc27fc88ee81047c236ec99dd51e8de (patch)
treeb3e8394ca1ec402a31b227339366fc790124c1f8 /idl/source/objects/types.cxx
parent89c77994d4638c86635c70535fab6508e2f3d900 (diff)
improve the returnbyref loplugin
Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb Reviewed-on: https://gerrit.libreoffice.org/16731 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idl/source/objects/types.cxx')
-rw-r--r--idl/source/objects/types.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index f7821911b6a0..95a04f0e50e9 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -151,8 +151,8 @@ bool SvMetaAttribute::ReadSvIdl( SvIdlDataBase & rBase,
aSlotId.ReadSvIdl( rBase, rInStm );
bOk = true;
- SvToken * pTok = rInStm.GetToken();
- if( bOk && pTok->IsChar() && pTok->GetChar() == '(' )
+ SvToken& rTok = rInStm.GetToken();
+ if( bOk && rTok.IsChar() && rTok.GetChar() == '(' )
{
SvMetaTypeRef xT = new SvMetaType();
xT->SetRef( GetType() );
@@ -164,11 +164,11 @@ bool SvMetaAttribute::ReadSvIdl( SvIdlDataBase & rBase,
}
else
{
- SvToken *pTok = rInStm.GetToken();
+ SvToken& rTok = rInStm.GetToken();
rBase.SetError( "unknown type of token. Each new SID needs an "
"item statement in an SDI file, eg. "
- "SfxVoidItem FooItem " + pTok->GetTokenAsString() +
- " ... which describes the slot more fully", pTok );
+ "SfxVoidItem FooItem " + rTok.GetTokenAsString() +
+ " ... which describes the slot more fully", rTok );
}
if( !bOk )