From 6778ff27ea4f48393e3803266b414a45a9ef5a0d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Jan 2017 20:33:01 +0100 Subject: [PATCH] util/ReusableArray: use C++11 initializers --- src/util/ReusableArray.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/ReusableArray.hxx b/src/util/ReusableArray.hxx index 60d323695..26a7be50f 100644 --- a/src/util/ReusableArray.hxx +++ b/src/util/ReusableArray.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 @@ -44,11 +44,11 @@ */ template class ReusableArray { - T *buffer; - size_t capacity; + T *buffer = nullptr; + size_t capacity = 0; public: - ReusableArray():buffer(nullptr), capacity(0) {} + ReusableArray() = default; ReusableArray(const ReusableArray &other) = delete; ReusableArray &operator=(const ReusableArray &other) = delete;