From 9310be075d6a03d5a8e6966a5f1850bb61ffc892 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 23 Feb 2019 17:40:44 +0100 Subject: [PATCH] Fix clang warning for ../../../trunk/retroshare-gui/src/gui/Posted/PostedDialog.cpp:99:10: warning: enumeration value 'ICON_SEARCH' not handled in switch [- Wswitch] switch (type) { ^ --- retroshare-gui/src/gui/Posted/PostedDialog.cpp | 2 ++ retroshare-gui/src/gui/gxsforums/GxsForumsDialog.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/retroshare-gui/src/gui/Posted/PostedDialog.cpp b/retroshare-gui/src/gui/Posted/PostedDialog.cpp index 320618cab..419339bcc 100644 --- a/retroshare-gui/src/gui/Posted/PostedDialog.cpp +++ b/retroshare-gui/src/gui/Posted/PostedDialog.cpp @@ -109,6 +109,8 @@ QString PostedDialog::icon(IconType type) return ":/icons/png/feed-popular.png"; case ICON_OTHER_GROUP: return ":/icons/png/feed-other.png"; + case ICON_SEARCH: + return ":/images/find.png"; case ICON_DEFAULT: return ""; } diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumsDialog.cpp b/retroshare-gui/src/gui/gxsforums/GxsForumsDialog.cpp index 116e2fe02..84e903335 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumsDialog.cpp +++ b/retroshare-gui/src/gui/gxsforums/GxsForumsDialog.cpp @@ -125,6 +125,8 @@ QString GxsForumsDialog::icon(IconType type) return ":/icons/png/feed-popular.png"; case ICON_OTHER_GROUP: return ":/icons/png/feed-other.png"; + case ICON_SEARCH: + return ":/images/find.png"; case ICON_DEFAULT: return ":/icons/png/forums-default.png"; }