|
@@ -16,7 +16,7 @@ VCMI_LIB_NAMESPACE_BEGIN
|
|
template <typename T>
|
|
template <typename T>
|
|
class ConstTransitivePtr
|
|
class ConstTransitivePtr
|
|
{
|
|
{
|
|
- T *ptr;
|
|
|
|
|
|
+ T *ptr = nullptr;
|
|
ConstTransitivePtr(const T *Ptr)
|
|
ConstTransitivePtr(const T *Ptr)
|
|
: ptr(const_cast<T*>(Ptr))
|
|
: ptr(const_cast<T*>(Ptr))
|
|
{}
|
|
{}
|
|
@@ -25,10 +25,7 @@ public:
|
|
: ptr(Ptr)
|
|
: ptr(Ptr)
|
|
{}
|
|
{}
|
|
ConstTransitivePtr(std::nullptr_t)
|
|
ConstTransitivePtr(std::nullptr_t)
|
|
- : ptr(nullptr)
|
|
|
|
{}
|
|
{}
|
|
-
|
|
|
|
-
|
|
|
|
const T& operator*() const
|
|
const T& operator*() const
|
|
{
|
|
{
|
|
return *ptr;
|
|
return *ptr;
|