diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-11 10:37:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-11 14:47:01 +0200 |
commit | 09d58f7be8802c7e3f60ced1b428195b4d6bb7fa (patch) | |
tree | dab8f13a6b49f54c1d16c97592d96c44b57f91f6 /idl/source/objects/object.cxx | |
parent | 6e8be4c99e00d75bfb0d358f64071495ec6b21e3 (diff) |
GetToken never returns null, so use a reference
Change-Id: I0164e546b0ee0b40acc7b9253d3c0ecded97280c
Diffstat (limited to 'idl/source/objects/object.cxx')
-rw-r--r-- | idl/source/objects/object.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx index 38cfe6bc59fa..697fe9f291b2 100644 --- a/idl/source/objects/object.cxx +++ b/idl/source/objects/object.cxx @@ -43,9 +43,9 @@ void SvMetaClass::ReadContextSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) { sal_uInt32 nTokPos = rInStm.Tell(); - SvToken * pTok = rInStm.GetToken_Next(); + SvToken& rTok = rInStm.GetToken_Next(); - if( pTok->Is( SvHash_import() ) ) + if( rTok.Is( SvHash_import() ) ) { SvMetaClass * pClass = rBase.ReadKnownClass( rInStm ); if( pClass ) @@ -54,10 +54,10 @@ void SvMetaClass::ReadContextSvIdl( SvIdlDataBase & rBase, xEle.SetClass( pClass ); aClassElementList.push_back( xEle ); - pTok = &rInStm.GetToken(); - if( pTok->IsString() ) + rTok = rInStm.GetToken(); + if( rTok.IsString() ) { - xEle.SetPrefix( pTok->GetString() ); + xEle.SetPrefix( rTok.GetString() ); rInStm.GetToken_Next(); } return; |