fix method ToString()

This commit is contained in:
tqcq 2024-03-03 18:33:57 +08:00
parent 2e3503efb3
commit d43ca205a5

View File

@ -29,7 +29,8 @@ Method::ToString() const
// get function const
ss << ")";
if (IsConst()) { ss << " const"; }
return ss.str() + " /*" + sled::StrJoin(properties(), ",") + "*/;";
if (!properties_.empty()) { ss << " /*" << sled::StrJoin(properties(), ",") << "*/"; }
return ss.str();
}
bool