From 8a3c25210d313521225e915a703982ad6949bc53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 5 Feb 2018 23:28:33 +0100 Subject: [PATCH] SymbolDatabase: Remove useless break. As far as I know Tokenizer::syntaxError() throws an exception and therefore the break after the function call is unreachable --- lib/symboldatabase.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 9665eec19..e42665185 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -128,10 +128,8 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes() // only create base list for classes and structures if (new_scope->isClassOrStruct()) { // goto initial '{' - if (!new_scope->definedType) { + if (!new_scope->definedType) _tokenizer->syntaxError(nullptr); // #6808 - break; - } tok2 = new_scope->definedType->initBaseInfo(tok, tok2); // make sure we have valid code if (!tok2) {