Commit 3e87ac75 authored by Max Kellermann's avatar Max Kellermann

util/Manual: use C++11 initializer

parent 9237f2a8
/* /*
* Copyright (C) 2013 Max Kellermann <max.kellermann@gmail.com> * Copyright (C) 2013-2017 Max Kellermann <max.kellermann@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -54,12 +54,11 @@ class Manual { ...@@ -54,12 +54,11 @@ class Manual {
char data[sizeof(T)]; char data[sizeof(T)];
#ifndef NDEBUG #ifndef NDEBUG
bool initialized; bool initialized = false;
#endif #endif
public: public:
#ifndef NDEBUG #ifndef NDEBUG
Manual():initialized(false) {}
~Manual() { ~Manual() {
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