diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-03 11:31:14 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-06 07:04:50 +0000 |
commit | e9c3583c2cc27fc88ee81047c236ec99dd51e8de (patch) | |
tree | b3e8394ca1ec402a31b227339366fc790124c1f8 /idl/source/objects/types.cxx | |
parent | 89c77994d4638c86635c70535fab6508e2f3d900 (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.cxx | 10 |
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 ) |