diff options
Diffstat (limited to 'idl/source/objects/bastype.cxx')
-rw-r--r-- | idl/source/objects/bastype.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx index ce1d8f379c66..d200f682939d 100644 --- a/idl/source/objects/bastype.cxx +++ b/idl/source/objects/bastype.cxx @@ -94,16 +94,11 @@ void SvIdentifier::ReadSvIdl( SvIdlDataBase & rBase, if( rTok.IsIdentifier() ) { sal_uLong n; - if( rBase.FindId( rTok.GetString(), &n ) ) - { - setString(rTok.GetString()); - nValue = n; - return; - } - else - { + if( !rBase.FindId( rTok.GetString(), &n ) ) rBase.SetAndWriteError( rInStm, "no value for identifier <" + getString() + "> " ); - } + setString(rTok.GetString()); + nValue = n; + return; } rInStm.Seek( nTokPos ); } |