summaryrefslogtreecommitdiff
path: root/basic/source/comp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-02 10:57:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-02 13:06:37 +0000
commitb1f8cf37828d5f37527e54774aa4935610aa6325 (patch)
tree33348c0208f76237f1b08823923f22f99d78b256 /basic/source/comp
parentc3a3b876a3a2a739b266622f51a00016a81b0cdf (diff)
loplugin:singlevalfields
Change-Id: I65f96d9cd24572c8d0946acf4d2d45eb3db83a76 Reviewed-on: https://gerrit.libreoffice.org/30476 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/comp')
-rw-r--r--basic/source/comp/exprtree.cxx2
-rw-r--r--basic/source/comp/io.cxx2
2 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index 179aaf3b488e..e7a2210ada0c 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -192,7 +192,7 @@ SbiExprNode* SbiExpression::Term( const KeywordSymbolInfo* pKeywordSymbolInfo )
return pNd;
}
- SbiToken eTok = (pKeywordSymbolInfo == nullptr) ? pParser->Next() : pKeywordSymbolInfo->m_eTok;
+ SbiToken eTok = (pKeywordSymbolInfo == nullptr) ? pParser->Next() : SYMBOL;
// memorize the parsing's begin
pParser->LockColumn();
OUString aSym( (pKeywordSymbolInfo == nullptr) ? pParser->GetSym() : pKeywordSymbolInfo->m_aKeywordSymbol );
diff --git a/basic/source/comp/io.cxx b/basic/source/comp/io.cxx
index 6e1c161923e7..5314874f3521 100644
--- a/basic/source/comp/io.cxx
+++ b/basic/source/comp/io.cxx
@@ -118,7 +118,6 @@ void SbiParser::Line()
KeywordSymbolInfo aInfo;
aInfo.m_aKeywordSymbol = "line";
aInfo.m_eSbxDataType = GetType();
- aInfo.m_eTok = SYMBOL;
Symbol( &aInfo );
}
@@ -282,7 +281,6 @@ void SbiParser::Name()
KeywordSymbolInfo aInfo;
aInfo.m_aKeywordSymbol = "name";
aInfo.m_eSbxDataType = GetType();
- aInfo.m_eTok = SYMBOL;
Symbol( &aInfo );
return;