util/Manual: use C++11 initializer
This commit is contained in:
parent
9237f2a80c
commit
3e87ac75a1
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user