diff options
author | Max Kellermann <max@duempel.org> | 2014-12-09 23:08:22 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-09 23:08:22 +0100 |
commit | 14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938 (patch) | |
tree | de70a3ca41a9350e6b1bc0cacf84629889e780a7 /src | |
parent | 3ab0691eecac239aee9b780928438a7df7d8394d (diff) | |
download | mpd-14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938.tar.gz mpd-14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938.tar.xz mpd-14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938.zip |
Util/Manual: add assertion to Get()
Diffstat (limited to 'src')
-rw-r--r-- | src/util/Manual.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx index 7b1023f41..684c7e1da 100644 --- a/src/util/Manual.hxx +++ b/src/util/Manual.hxx @@ -93,10 +93,14 @@ public: } T &Get() { + assert(initialized); + return *(T *)data; } const T &Get() const { + assert(initialized); + return *(const T *)data; } |