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;