Initialize _a and _b in constructor (-Weffc).

This commit is contained in:
Michael Müller
2022-07-11 12:08:07 +02:00
parent e6b09edaca
commit 2644b7d5aa

View File

@@ -37,8 +37,8 @@ struct HelloClient {
return;
}
_a = _config.xml().attribute_value("a", 2);
_b = _config.xml().attribute_value("b", 5);
_a = _config.xml().attribute_value("a", (int)2);
_b = _config.xml().attribute_value("b", (int)5);
}
Genode::Signal_handler<HelloClient> _config_handler {
@@ -55,7 +55,7 @@ struct HelloClient {
Genode::log("hello test completed.");
}
HelloClient(Genode::Env &env, Hello::Connection &conn) : _env(env), _hello(conn)
HelloClient(Genode::Env &env, Hello::Connection &conn) : _env(env), _hello(conn), _a(5), _b(2)
{}
};