App: modernize C++: use default member init
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user