summaryrefslogtreecommitdiff
path: root/idl/source/objects/types.cxx
diff options
context:
space:
mode:
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 )