Commit 9b3470ea authored by Max Kellermann's avatar Max Kellermann

lib/xiph/OggStream: use C++11 initializer

parent 86a505b4
...@@ -34,12 +34,11 @@ class OggStream { ...@@ -34,12 +34,11 @@ class OggStream {
bool flush; bool flush;
#ifndef NDEBUG #ifndef NDEBUG
bool initialized; bool initialized = false;
#endif #endif
public: public:
#ifndef NDEBUG #ifndef NDEBUG
OggStream():initialized(false) {}
~OggStream() { ~OggStream() {
assert(!initialized); assert(!initialized);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment