From 30e38972470ecddfddeca09ec7d5dd40b215dfcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 20 Jul 2016 12:56:29 +0200 Subject: [PATCH] simplecpp: convert a few mutual exclusive ifs into else ifs. --- externals/simplecpp/simplecpp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/externals/simplecpp/simplecpp.cpp b/externals/simplecpp/simplecpp.cpp index e577b9c9b..60dd1bf7d 100644 --- a/externals/simplecpp/simplecpp.cpp +++ b/externals/simplecpp/simplecpp.cpp @@ -1068,15 +1068,15 @@ void simplifySizeof(simplecpp::TokenList &expr) { for (simplecpp::Token *typeToken = tok1; typeToken != tok2; typeToken = typeToken->next) { if (typeToken->str == "char") sz = sizeof(char); - if (typeToken->str == "short") + else if (typeToken->str == "short") sz = sizeof(short); - if (typeToken->str == "int") + else if (typeToken->str == "int") sz = sizeof(int); - if (typeToken->str == "long") + else if (typeToken->str == "long") sz = sizeof(long); - if (typeToken->str == "float") + else if (typeToken->str == "float") sz = sizeof(float); - if (typeToken->str == "double") + else if (typeToken->str == "double") sz = sizeof(double); }