diff options
Diffstat (limited to 'kmrml')
-rw-r--r-- | kmrml/kmrml/lib/mrml_utils.cpp | 4 | ||||
-rw-r--r-- | kmrml/kmrml/loader.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kmrml/kmrml/lib/mrml_utils.cpp b/kmrml/kmrml/lib/mrml_utils.cpp index 314bbc7b..43e84dae 100644 --- a/kmrml/kmrml/lib/mrml_utils.cpp +++ b/kmrml/kmrml/lib/mrml_utils.cpp @@ -34,7 +34,7 @@ using namespace KMrml; KStaticDeleter<Util> utils_sd; -Util *Util::s_self = 0L; +Util *Util::s_self = nullptr; Util::Util() { @@ -56,7 +56,7 @@ Util::~Util() Util *Util::self() { if ( !s_self ) - s_self = utils_sd.setObject( new Util() ); + utils_sd.setObject( s_self, new Util() ); return s_self; } diff --git a/kmrml/kmrml/loader.cpp b/kmrml/kmrml/loader.cpp index 576513ed..2925aa9c 100644 --- a/kmrml/kmrml/loader.cpp +++ b/kmrml/kmrml/loader.cpp @@ -21,14 +21,14 @@ #include "loader.h" -Loader *Loader::s_self = 0L; +Loader *Loader::s_self = nullptr; KStaticDeleter<Loader> sd; Loader * Loader::self() { if ( !s_self ) - s_self = sd.setObject( new Loader() ); + sd.setObject( s_self, new Loader() ); return s_self; } |