From 3e87ac75a10ebf845a4ef84913733e968fecbd66 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Jul 2017 12:12:41 +0200 Subject: [PATCH] util/Manual: use C++11 initializer --- src/util/Manual.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx index a9543cc6f..f3a116b94 100644 --- a/src/util/Manual.hxx +++ b/src/util/Manual.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Max Kellermann + * Copyright (C) 2013-2017 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -54,12 +54,11 @@ class Manual { char data[sizeof(T)]; #ifndef NDEBUG - bool initialized; + bool initialized = false; #endif public: #ifndef NDEBUG - Manual():initialized(false) {} ~Manual() { assert(!initialized); }