App: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 14:13:11 +02:00
committed by wwmayer
parent 4210ab01e0
commit 1cf1a90a17
39 changed files with 96 additions and 160 deletions

View File

@@ -522,12 +522,12 @@ public:
Base::Quantity scaler;
std::string unitStr;
} quantity;
Expression::Component *component;
Expression * expr;
Expression::Component *component{nullptr};
Expression * expr{nullptr};
ObjectIdentifier path;
std::deque<ObjectIdentifier::Component> components;
long long int ivalue;
double fvalue;
long long int ivalue{0};
double fvalue{0};
struct {
const char *name = "";
double fvalue = 0;
@@ -537,8 +537,7 @@ public:
std::string string;
std::pair<FunctionExpression::Function,std::string> func;
ObjectIdentifier::String string_or_identifier;
semantic_type() : component(nullptr), expr(nullptr), ivalue(0), fvalue(0)
, func({FunctionExpression::NONE, std::string()}) {}
semantic_type() : func({FunctionExpression::NONE, std::string()}) {}
};
#define YYSTYPE semantic_type