util/Manual: use C++11 initializer

This commit is contained in:
Max Kellermann 2017-07-05 12:12:41 +02:00
parent 9237f2a80c
commit 3e87ac75a1

View File

@ -1,5 +1,5 @@
/* /*
* 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 {
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);
} }