Fix compilation on gcc
This commit is contained in:
@@ -12,12 +12,11 @@ namespace twitch {
|
|||||||
|
|
||||||
class TwitchServer final : public irc::AbstractIrcServer
|
class TwitchServer final : public irc::AbstractIrcServer
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
TwitchServer();
|
TwitchServer();
|
||||||
friend class Application;
|
|
||||||
|
|
||||||
void initialize();
|
void initialize();
|
||||||
|
|
||||||
public:
|
|
||||||
// fourtf: ugh
|
// fourtf: ugh
|
||||||
void forEachChannelAndSpecialChannels(std::function<void(ChannelPtr)> func);
|
void forEachChannelAndSpecialChannels(std::function<void(ChannelPtr)> func);
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public:
|
|||||||
|
|
||||||
TVectorItem item = this->vector[index];
|
TVectorItem item = this->vector[index];
|
||||||
this->vector.erase(this->vector.begin() + index);
|
this->vector.erase(this->vector.begin() + index);
|
||||||
ItemArgs args{item, index, caller};
|
typename ReadOnlySignalVector<TVectorItem>::ItemArgs args{item, index, caller};
|
||||||
this->itemRemoved.invoke(args);
|
this->itemRemoved.invoke(args);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -82,7 +82,7 @@ public:
|
|||||||
|
|
||||||
this->vector.insert(this->vector.begin() + index, item);
|
this->vector.insert(this->vector.begin() + index, item);
|
||||||
|
|
||||||
ItemArgs args{item, index, caller};
|
typename ReadOnlySignalVector<TVectorItem>::ItemArgs args{item, index, caller};
|
||||||
this->itemInserted.invoke(args);
|
this->itemInserted.invoke(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ public:
|
|||||||
int index = this->vector.insert(
|
int index = this->vector.insert(
|
||||||
std::lower_bound(this->vector.begin(), this->vector.end(), item), item) -
|
std::lower_bound(this->vector.begin(), this->vector.end(), item), item) -
|
||||||
this->vector.begin();
|
this->vector.begin();
|
||||||
ItemArgs args{item, index, caller};
|
typename ReadOnlySignalVector<TVectorItem>::ItemArgs args{item, index, caller};
|
||||||
this->itemInserted.invoke(args);
|
this->itemInserted.invoke(args);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public:
|
|||||||
{
|
{
|
||||||
this->vector = vec;
|
this->vector = vec;
|
||||||
|
|
||||||
auto insert = [this](const BaseSignalVector<TVectorItem>::ItemArgs &args) {
|
auto insert = [this](const typename BaseSignalVector<TVectorItem>::ItemArgs &args) {
|
||||||
std::vector<QStandardItem *> items;
|
std::vector<QStandardItem *> items;
|
||||||
for (int i = 0; i < this->_columnCount; i++) {
|
for (int i = 0; i < this->_columnCount; i++) {
|
||||||
items.push_back(new QStandardItem());
|
items.push_back(new QStandardItem());
|
||||||
@@ -43,7 +43,7 @@ public:
|
|||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (const TVectorItem &item : vec->getVector()) {
|
for (const TVectorItem &item : vec->getVector()) {
|
||||||
BaseSignalVector<TVectorItem>::ItemArgs args{item, i++, 0};
|
typename BaseSignalVector<TVectorItem>::ItemArgs args{item, i++, 0};
|
||||||
|
|
||||||
insert(args);
|
insert(args);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user