summaryrefslogtreecommitdiff
path: root/idl/source/objects/object.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/object.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/object.cxx')
-rw-r--r--idl/source/objects/object.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx
index 635f9019f288..fe9117da1979 100644
--- a/idl/source/objects/object.cxx
+++ b/idl/source/objects/object.cxx
@@ -72,8 +72,7 @@ void SvMetaClass::ReadContextSvIdl( SvIdlDataBase & rBase,
if( xAutomationInterface.Is() )
{
// set error
- rBase.SetError( "Automation already set",
- rInStm.GetToken() );
+ rBase.SetError( "Automation already set", rInStm.GetToken() );
rBase.WriteError( rInStm );
}
xAutomationInterface = pClass;
@@ -89,12 +88,11 @@ void SvMetaClass::ReadContextSvIdl( SvIdlDataBase & rBase,
else
{
// set error
- rBase.SetError( "only attribute Automation allowed",
- rInStm.GetToken() );
+ rBase.SetError( "only attribute Automation allowed", rInStm.GetToken() );
rBase.WriteError( rInStm );
}
}
- pTok = rInStm.GetToken();
+ pTok = &rInStm.GetToken();
if( pTok->IsString() )
{
xEle->SetPrefix( pTok->GetString() );
@@ -159,8 +157,7 @@ bool SvMetaClass::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm )
if( !bOk )
{
// set error
- rBase.SetError( "unknown super class",
- rInStm.GetToken() );
+ rBase.SetError( "unknown super class", rInStm.GetToken() );
rBase.WriteError( rInStm );
}
}