mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
replaced 0 with nullptr in signalvector
This commit is contained in:
parent
836f931b23
commit
6909d1d939
|
@ -62,9 +62,10 @@ class BaseSignalVector : public ReadOnlySignalVector<TVectorItem>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// returns the actual index of the inserted item
|
// returns the actual index of the inserted item
|
||||||
virtual int insertItem(const TVectorItem &item, int proposedIndex = -1, void *caller = 0) = 0;
|
virtual int insertItem(const TVectorItem &item, int proposedIndex = -1,
|
||||||
|
void *caller = nullptr) = 0;
|
||||||
|
|
||||||
void removeItem(int index, void *caller = 0)
|
void removeItem(int index, void *caller = nullptr)
|
||||||
{
|
{
|
||||||
assertInGuiThread();
|
assertInGuiThread();
|
||||||
assert(index >= 0 && index < this->vector.size());
|
assert(index >= 0 && index < this->vector.size());
|
||||||
|
@ -77,7 +78,7 @@ public:
|
||||||
this->invokeDelayedItemsChanged();
|
this->invokeDelayedItemsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
int appendItem(const TVectorItem &item, void *caller = 0)
|
int appendItem(const TVectorItem &item, void *caller = nullptr)
|
||||||
{
|
{
|
||||||
return this->insertItem(item, -1, caller);
|
return this->insertItem(item, -1, caller);
|
||||||
}
|
}
|
||||||
|
@ -87,7 +88,7 @@ template <typename TVectorItem>
|
||||||
class UnsortedSignalVector : public BaseSignalVector<TVectorItem>
|
class UnsortedSignalVector : public BaseSignalVector<TVectorItem>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual int insertItem(const TVectorItem &item, int index = -1, void *caller = 0) override
|
virtual int insertItem(const TVectorItem &item, int index = -1, void *caller = nullptr) override
|
||||||
{
|
{
|
||||||
assertInGuiThread();
|
assertInGuiThread();
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
|
|
Loading…
Reference in a new issue