diff options
author | Dylam De La Torre <DyXel04@gmail.com> | 2021-11-16 20:38:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 19:38:14 +0000 |
commit | 9d21df8e1bca9ccfa1bcfcde3bc8f35473866166 (patch) | |
tree | 5d2ea9d83bd779f325c1c48728fc9ac5832cdc5e /components/friendslist.cpp | |
parent | 108002248c0739078302e00d5ca224a44b93ea56 (diff) | |
download | abaddon-portaudio-9d21df8e1bca9ccfa1bcfcde3bc8f35473866166.tar.gz abaddon-portaudio-9d21df8e1bca9ccfa1bcfcde3bc8f35473866166.zip |
Fix warnings shown by GCC (#47)
* fix all warnings shown by GCC
Diffstat (limited to 'components/friendslist.cpp')
-rw-r--r-- | components/friendslist.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/friendslist.cpp b/components/friendslist.cpp index 6541b0c..ec78b57 100644 --- a/components/friendslist.cpp +++ b/components/friendslist.cpp @@ -185,9 +185,9 @@ bool FriendsList::ListFilterFunc(Gtk::ListBoxRow *row_) { FriendsListAddComponent::FriendsListAddComponent() : Gtk::Box(Gtk::ORIENTATION_VERTICAL) , m_label("Add a Friend", Gtk::ALIGN_START) - , m_box(Gtk::ORIENTATION_HORIZONTAL) + , m_status("", Gtk::ALIGN_START) , m_add("Add") - , m_status("", Gtk::ALIGN_START) { + , m_box(Gtk::ORIENTATION_HORIZONTAL) { m_box.add(m_entry); m_box.add(m_add); m_box.add(m_status); @@ -241,9 +241,9 @@ bool FriendsListAddComponent::OnKeyPress(GdkEventKey *e) { } FriendsListFriendRow::FriendsListFriendRow(RelationshipType type, const UserData &data) - : Name(data.Username + "#" + data.Discriminator) + : ID(data.ID) , Type(type) - , ID(data.ID) + , Name(data.Username + "#" + data.Discriminator) , Status(Abaddon::Get().GetDiscordClient().GetUserStatus(data.ID)) , m_accept("Accept") { auto *ev = Gtk::manage(new Gtk::EventBox); |