diff --git a/src/providers/twitch/twitchserver.hpp b/src/providers/twitch/twitchserver.hpp index 8c0de271a..998521974 100644 --- a/src/providers/twitch/twitchserver.hpp +++ b/src/providers/twitch/twitchserver.hpp @@ -12,12 +12,11 @@ namespace twitch { class TwitchServer final : public irc::AbstractIrcServer { +public: TwitchServer(); - friend class Application; void initialize(); -public: // fourtf: ugh void forEachChannelAndSpecialChannels(std::function func); diff --git a/src/util/signalvector2.hpp b/src/util/signalvector2.hpp index 054d2780c..44a12b3fd 100644 --- a/src/util/signalvector2.hpp +++ b/src/util/signalvector2.hpp @@ -66,7 +66,7 @@ public: TVectorItem item = this->vector[index]; this->vector.erase(this->vector.begin() + index); - ItemArgs args{item, index, caller}; + typename ReadOnlySignalVector::ItemArgs args{item, index, caller}; this->itemRemoved.invoke(args); } }; @@ -82,7 +82,7 @@ public: this->vector.insert(this->vector.begin() + index, item); - ItemArgs args{item, index, caller}; + typename ReadOnlySignalVector::ItemArgs args{item, index, caller}; this->itemInserted.invoke(args); } @@ -103,7 +103,7 @@ public: int index = this->vector.insert( std::lower_bound(this->vector.begin(), this->vector.end(), item), item) - this->vector.begin(); - ItemArgs args{item, index, caller}; + typename ReadOnlySignalVector::ItemArgs args{item, index, caller}; this->itemInserted.invoke(args); } }; diff --git a/src/util/signalvectormodel.hpp b/src/util/signalvectormodel.hpp index cf1e3b1c2..9f5e812e3 100644 --- a/src/util/signalvectormodel.hpp +++ b/src/util/signalvectormodel.hpp @@ -26,7 +26,7 @@ public: { this->vector = vec; - auto insert = [this](const BaseSignalVector::ItemArgs &args) { + auto insert = [this](const typename BaseSignalVector::ItemArgs &args) { std::vector items; for (int i = 0; i < this->_columnCount; i++) { items.push_back(new QStandardItem()); @@ -43,7 +43,7 @@ public: int i = 0; for (const TVectorItem &item : vec->getVector()) { - BaseSignalVector::ItemArgs args{item, i++, 0}; + typename BaseSignalVector::ItemArgs args{item, i++, 0}; insert(args); }