It is unsafe to assign an pointer that is returned by the new operator directly because the target variable was eventually not initialised with a well-known value like "nullptr" before a C++ exception would occur. So I suggest to improve the remaining source code places.
I'm sorry that I was not aware that a class like "unique_ptr" has got some uses in your code base already. I would appreciate if its usage can be completed.
It is unsafe to assign an pointer that is returned by the new operator directly because the target variable was eventually not initialised with a well-known value like "nullptr" before a C++ exception would occur. So I suggest to improve the remaining source code places.
I'm sorry that I was not aware that a class like "unique_ptr" has got some uses in your code base already. I would appreciate if its usage can be completed.