diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-13 11:47:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-13 11:47:27 +0200 |
commit | 85d71244eb8caf55aab8094b587dfee7fa1e97b2 (patch) | |
tree | 7485b858e2c598a4a38783d909ae716c5bb84b48 /basic/source/comp | |
parent | ad4e4c7834c576189e2a4b230baa1f12207718ec (diff) |
loplugin:oncevar: empty strings: basic
Change-Id: I4edf130e526c4004aa8913e6aafdcd1e2f4ac1ef
Diffstat (limited to 'basic/source/comp')
-rw-r--r-- | basic/source/comp/exprtree.cxx | 6 | ||||
-rw-r--r-- | basic/source/comp/parser.cxx | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx index 3039046f39bd..085476bb794a 100644 --- a/basic/source/comp/exprtree.cxx +++ b/basic/source/comp/exprtree.cxx @@ -606,8 +606,7 @@ SbiExprNode* SbiExpression::Unary() pParser->Next(); SbiExprNode* pObjNode = Operand( true/*bUsedForTypeOf*/ ); pParser->TestToken( IS ); - OUString aDummy; - SbiSymDef* pTypeDef = new SbiSymDef( aDummy ); + SbiSymDef* pTypeDef = new SbiSymDef( OUString() ); pParser->TypeDecl( *pTypeDef, true ); pNd = new SbiExprNode( pObjNode, pTypeDef->GetTypeId() ); break; @@ -615,8 +614,7 @@ SbiExprNode* SbiExpression::Unary() case NEW: { pParser->Next(); - OUString aStr; - SbiSymDef* pTypeDef = new SbiSymDef( aStr ); + SbiSymDef* pTypeDef = new SbiSymDef( OUString() ); pParser->TypeDecl( *pTypeDef, true ); pNd = new SbiExprNode( pTypeDef->GetTypeId() ); break; diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index 0347e0eccd62..d4a33465c122 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -590,8 +590,7 @@ void SbiParser::Set() if( eTok == NEW ) { Next(); - OUString aStr; - SbiSymDef* pTypeDef = new SbiSymDef( aStr ); + SbiSymDef* pTypeDef = new SbiSymDef( OUString() ); TypeDecl( *pTypeDef, true ); aLvalue.Gen(); |