summaryrefslogtreecommitdiff
path: root/src/KM_platform.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2013-05-28 18:13:12 +0000
committerjhurst <>2013-05-28 18:13:12 +0000
commitdc0a23dd428b933040c9ff1602f5d35a27cbc8cb (patch)
treeb69ecec63b08464545adfb741e059b7c34f125ef /src/KM_platform.h
parent252740d6f7d8924c6af30e55d2da487356a0acdc (diff)
patches
Diffstat (limited to 'src/KM_platform.h')
-rw-r--r--src/KM_platform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/KM_platform.h b/src/KM_platform.h
index c040261..578f545 100644
--- a/src/KM_platform.h
+++ b/src/KM_platform.h
@@ -166,7 +166,7 @@ namespace Kumu
~mem_ptr() { delete m_p; }
inline T& operator*() const { return *m_p; }
- inline T* operator->() const { return m_p; }
+ inline T* operator->() const { assert(m_p!=0); return m_p; }
inline operator T*()const { return m_p; }
inline const mem_ptr<T>& operator=(T* p) { this->set(p); return *this; }
inline T* set(T* p) { delete m_p; m_p = p; return m_p; }