diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-05 22:01:53 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-05 22:01:53 -0400 |
commit | 49685c39895af67d7ffcc50fdc02150b6ee44f72 (patch) | |
tree | 5c5c262f95a30e58582a285b467d05954ff5f35c /src/components/chatmessage.hpp | |
parent | 9767e1e7fdef9262211ec676b4f0d4c30ff10649 (diff) | |
download | abaddon-portaudio-49685c39895af67d7ffcc50fdc02150b6ee44f72.tar.gz abaddon-portaudio-49685c39895af67d7ffcc50fdc02150b6ee44f72.zip |
fix up a bunch of clang-tidy stuff
mostly changing references, which i hope doesnt break stuff with models (TreeRow, iterators) since they gave me some strange problems in the past
Diffstat (limited to 'src/components/chatmessage.hpp')
-rw-r--r-- | src/components/chatmessage.hpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/components/chatmessage.hpp b/src/components/chatmessage.hpp index 5e213ee..86c3fea 100644 --- a/src/components/chatmessage.hpp +++ b/src/components/chatmessage.hpp @@ -19,14 +19,13 @@ public: void SetFailed(); protected: - void AddClickHandler(Gtk::Widget *widget, std::string); + static void AddClickHandler(Gtk::Widget *widget, const std::string &); Gtk::TextView *CreateTextComponent(const Message &data); // Message.Content void UpdateTextComponent(Gtk::TextView *tv); Gtk::Widget *CreateEmbedsComponent(const std::vector<EmbedData> &embeds); - Gtk::Widget *CreateEmbedComponent(const EmbedData &data); // Message.Embeds[0] + static Gtk::Widget *CreateEmbedComponent(const EmbedData &data); // Message.Embeds[0] Gtk::Widget *CreateImageComponent(const std::string &proxy_url, const std::string &url, int inw, int inh); Gtk::Widget *CreateAttachmentComponent(const AttachmentData &data); // non-image attachments - Gtk::Widget *CreateStickerComponentDeprecated(const StickerData &data); Gtk::Widget *CreateStickersComponent(const std::vector<StickerItem> &data); Gtk::Widget *CreateReactionsComponent(const Message &data); Gtk::Widget *CreateReplyComponent(const Message &data); @@ -35,14 +34,14 @@ protected: static bool IsEmbedImageOnly(const EmbedData &data); - void HandleRoleMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf); - void HandleUserMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf); - void HandleStockEmojis(Gtk::TextView &tv); - void HandleCustomEmojis(Gtk::TextView &tv); - void HandleEmojis(Gtk::TextView &tv); - void CleanupEmojis(Glib::RefPtr<Gtk::TextBuffer> buf); + static void HandleRoleMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf); + void HandleUserMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf) const; + static void HandleStockEmojis(Gtk::TextView &tv); + static void HandleCustomEmojis(Gtk::TextView &tv); + static void HandleEmojis(Gtk::TextView &tv); + static void CleanupEmojis(const Glib::RefPtr<Gtk::TextBuffer> &buf); - void HandleChannelMentions(Glib::RefPtr<Gtk::TextBuffer> buf); + void HandleChannelMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf); void HandleChannelMentions(Gtk::TextView *tv); bool OnClickChannel(GdkEventButton *ev); |