Fix warnings shown by GCC (#47)

* fix all warnings shown by GCC
This commit is contained in:
Dylam De La Torre
2021-11-16 20:38:14 +01:00
committed by GitHub
parent 108002248c
commit 9d21df8e1b
24 changed files with 65 additions and 76 deletions

View File

@@ -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<Gdk::Pixbuf> 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<ConnectionData> &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));