summaryrefslogtreecommitdiff
path: root/src/components/chatinputindicator.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-04-05 22:01:53 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-04-05 22:01:53 -0400
commit49685c39895af67d7ffcc50fdc02150b6ee44f72 (patch)
tree5c5c262f95a30e58582a285b467d05954ff5f35c /src/components/chatinputindicator.cpp
parent9767e1e7fdef9262211ec676b4f0d4c30ff10649 (diff)
downloadabaddon-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/chatinputindicator.cpp')
-rw-r--r--src/components/chatinputindicator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/chatinputindicator.cpp b/src/components/chatinputindicator.cpp
index ba794f3..b829c46 100644
--- a/src/components/chatinputindicator.cpp
+++ b/src/components/chatinputindicator.cpp
@@ -84,14 +84,14 @@ void ChatInputIndicator::OnMessageCreate(const Message &message) {
void ChatInputIndicator::SetTypingString(const Glib::ustring &str) {
m_label.set_text(str);
- if (str == "")
+ if (str.empty())
m_img.hide();
else if (m_img.property_pixbuf_animation().get_value())
m_img.show();
}
void ChatInputIndicator::ComputeTypingString() {
- if (m_custom_markup != "") {
+ if (!m_custom_markup.empty()) {
m_label.set_markup(m_custom_markup);
m_img.hide();
return;
@@ -104,7 +104,7 @@ void ChatInputIndicator::ComputeTypingString() {
if (user.has_value())
typers.push_back(*user);
}
- if (typers.size() == 0) {
+ if (typers.empty()) {
SetTypingString("");
} else if (typers.size() == 1) {
SetTypingString(typers[0].Username + " is typing...");