From 3b5b8e0832dbb7026dc9eb7b0d0a1a8d681f4a14 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 1 Apr 2022 11:42:13 -0500 Subject: [PATCH] fix: use std::array instead of C-style array --- gtk/MainWindow.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/MainWindow.cc b/gtk/MainWindow.cc index 0f7490671..c3963dfc3 100644 --- a/gtk/MainWindow.cc +++ b/gtk/MainWindow.cc @@ -1,7 +1,8 @@ -// This file Copyright © 2005-2021 Transmission authors and contributors. +// This file Copyright © 2005-2022 Transmission authors and contributors. // It may be used under the MIT (SPDX: MIT) license. // License text can be found in the licenses/ folder. +#include #include #include @@ -61,8 +62,8 @@ private: MainWindow& window_; - Gtk::RadioMenuItem* speedlimit_on_item_[2] = { nullptr, nullptr }; - Gtk::RadioMenuItem* speedlimit_off_item_[2] = { nullptr, nullptr }; + std::array speedlimit_on_item_; + std::array speedlimit_off_item_; Gtk::RadioMenuItem* ratio_on_item_ = nullptr; Gtk::RadioMenuItem* ratio_off_item_ = nullptr; Gtk::ScrolledWindow* scroll_ = nullptr;