create visitor for all existed CK class
This commit is contained in:
@ -144,7 +144,7 @@ namespace LibCmo::XContainer {
|
||||
}
|
||||
namespace NSXObjectPointerArray {
|
||||
|
||||
bool AddIfNotHere(XObjectPointerArray& objarray, CK2::ObjImpls::CKObject* const obj) {
|
||||
bool AddIfNotHere(XObjectPointerArray& objarray, CK2::ObjImpls::CKObject* obj) {
|
||||
auto finder = std::find(objarray.begin(), objarray.end(), obj);
|
||||
if (finder == objarray.end()) {
|
||||
objarray.emplace_back(obj);
|
||||
|
@ -186,7 +186,7 @@ namespace LibCmo::XContainer {
|
||||
* @param obj
|
||||
* @return True if the object was already present, false otherwise
|
||||
*/
|
||||
bool AddIfNotHere(XObjectPointerArray& objarray, CK2::ObjImpls::CKObject* const obj);
|
||||
bool AddIfNotHere(XObjectPointerArray& objarray, CK2::ObjImpls::CKObject* obj);
|
||||
|
||||
/**
|
||||
* @brief Check Object pointer validation and remove invalid pointers before deletion.
|
||||
|
Reference in New Issue
Block a user