python,util: Fix SimObjectParams default constructor and destructor (#880)

The empty constructor prevent zero-initialization working correctly. In
this change we fix the issue by removing the unwanted empty constructor.
We also change the default destructor specification with c++11 style.

Change-Id: I869a93ca5283f811c2aa58406f1478459e0d7022
This commit is contained in:
wmin0
2024-02-26 22:42:27 +08:00
committed by GitHub
parent 47f3ad45d3
commit 00ed1d30cf

View File

@@ -211,8 +211,7 @@ code.indent()
if sim_object == SimObject:
code(
"""
SimObjectParams() {}
virtual ~SimObjectParams() {}
virtual ~SimObjectParams() = default;
std::string name;
"""