2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use nullptr instead of std::unique_ptr<Type>().

This commit is contained in:
John Preston
2017-08-13 19:14:00 +03:00
parent 0bea2620b5
commit 012d59ab42
11 changed files with 29 additions and 24 deletions

View File

@@ -392,7 +392,7 @@ void CountrySelectBox::Inner::mousePressEvent(QMouseEvent *e) {
if (_ripples.size() <= _pressed) {
_ripples.reserve(_pressed + 1);
while (_ripples.size() <= _pressed) {
_ripples.push_back(std::unique_ptr<Ui::RippleAnimation>());
_ripples.push_back(nullptr);
}
}
if (!_ripples[_pressed]) {