.cosmetics (warning removed)

This commit is contained in:
Mirek Fidler 2023-03-12 11:49:11 +01:00
parent 284648cf87
commit 1bb3725781

View file

@ -66,8 +66,10 @@ String Ctrl::Name() const {
#else
String s = String(typeid(*this).name()) + " : " + Format("0x%x", (int) this);
#endif
if(IsChild())
s << "(parent " << String(typeid(*GetParent()).name()) << ")";
if(IsChild()) {
Ctrl *parent = GetParent();
s << "(parent " << String(typeid(*parent).name()) << ")";
}
return s;
}