summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 10:15:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 11:32:42 +0200
commit4d00131b677da3afd1779777dabb275c276221c8 (patch)
tree91c39659ef61fb684195ef7aa08c495930e4c3a7 /basic
parentd52d448e7b34cb8c2457948489e6691049f4a571 (diff)
Reduce variable scope
Change-Id: I87850db982f413b328976e043d8386b7577ba17c
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/exprtree.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index 53dcfc57e779..5850072bad31 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -501,10 +501,9 @@ SbiExprNode* SbiExpression::ObjTerm( SbiSymDef& rObj )
SbiExprNode* SbiExpression::Operand( bool bUsedForTypeOf )
{
SbiExprNode *pRes;
- SbiToken eTok;
// test operand:
- switch( eTok = pParser->Peek() )
+ switch( SbiToken eTok = pParser->Peek() )
{
case SYMBOL:
pRes = Term();