From 9d21df8e1bca9ccfa1bcfcde3bc8f35473866166 Mon Sep 17 00:00:00 2001 From: Dylam De La Torre Date: Tue, 16 Nov 2021 20:38:14 +0100 Subject: Fix warnings shown by GCC (#47) * fix all warnings shown by GCC --- windows/profile/userinfopane.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'windows/profile/userinfopane.cpp') diff --git a/windows/profile/userinfopane.cpp b/windows/profile/userinfopane.cpp index 33e04ef..bfeb4ed 100644 --- a/windows/profile/userinfopane.cpp +++ b/windows/profile/userinfopane.cpp @@ -3,8 +3,8 @@ #include "../../abaddon.hpp" ConnectionItem::ConnectionItem(const ConnectionData &conn) - : m_name(conn.Name) - , m_box(Gtk::ORIENTATION_HORIZONTAL) { + : m_box(Gtk::ORIENTATION_HORIZONTAL) + , m_name(conn.Name) { Glib::RefPtr pixbuf; try { pixbuf = Gdk::Pixbuf::create_from_file(Abaddon::GetResPath("/" + conn.Type + ".png"), 32, 32); @@ -97,7 +97,7 @@ void ConnectionsContainer::SetConnections(const std::vector &con "facebook" }; - for (int i = 0; i < connections.size(); i++) { + for (size_t i = 0; i < connections.size(); i++) { const auto &conn = connections[i]; if (supported_services.find(conn.Type) == supported_services.end()) continue; auto widget = Gtk::manage(new ConnectionItem(conn)); -- cgit v1.2.3