replaced 0 with nullptr in signalvector

This commit is contained in:
fourtf 2018-07-03 15:08:55 +02:00
parent 836f931b23
commit 6909d1d939

View file

@ -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) {