fix a bunch of clang-tidy warnings
fixed a couple actual real bugs (missing returns in operator=, wrong implicit bool conversion). mostly added a bunch of explicit ctor.
This commit is contained in:
committed by
Mathias Agopian
parent
9ac432d530
commit
a4851ed835
@@ -24,12 +24,11 @@ static constexpr size_t NAME = 0;
|
||||
NameComponentManager::NameComponentManager(EntityManager& em) {
|
||||
}
|
||||
|
||||
NameComponentManager::~NameComponentManager() {
|
||||
}
|
||||
NameComponentManager::~NameComponentManager() = default;
|
||||
|
||||
void NameComponentManager::setName(Instance instance, const char* name) noexcept {
|
||||
if (instance) {
|
||||
elementAt<NAME>(instance) = { name };
|
||||
elementAt<NAME>(instance) = details::SafeString{ name };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user