Removed redundant semicolons from code.

This commit is contained in:
23rd 2023-12-28 15:15:09 +03:00 committed by John Preston
parent 1cb5ef7476
commit c2712b0104
10 changed files with 10 additions and 10 deletions

View file

@ -848,7 +848,7 @@ void ShareBox::Inner::loadProfilePhotos(int yFrom) {
if (!_chatsIndexed->empty()) { if (!_chatsIndexed->empty()) {
const auto index = yFrom / _rowHeight; const auto index = yFrom / _rowHeight;
auto i = _chatsIndexed->begin() auto i = _chatsIndexed->begin()
+ std::min(index, _chatsIndexed->size());; + std::min(index, _chatsIndexed->size());
for (auto end = _chatsIndexed->cend(); i != end; ++i) { for (auto end = _chatsIndexed->cend(); i != end; ++i) {
if (((*i)->index() * _rowHeight) >= yTo) { if (((*i)->index() * _rowHeight) >= yTo) {
break; break;

View file

@ -368,7 +368,7 @@ QString UserData::username() const {
} }
QString UserData::editableUsername() const { QString UserData::editableUsername() const {
return _username.editableUsername();; return _username.editableUsername();
} }
const std::vector<QString> &UserData::usernames() const { const std::vector<QString> &UserData::usernames() const {

View file

@ -2695,7 +2695,7 @@ void Widget::filterCursorMoved() {
} }
void Widget::completeHashtag(QString tag) { void Widget::completeHashtag(QString tag) {
const auto t = _filter->getLastText();; const auto t = _filter->getLastText();
auto cur = _filter->textCursor().position(); auto cur = _filter->textCursor().position();
auto hashtag = QString(); auto hashtag = QString();
for (int start = cur; start > 0;) { for (int start = cur; start > 0;) {

View file

@ -281,7 +281,7 @@ private:
base::unique_qptr<Ui::IconButton> _cancel; base::unique_qptr<Ui::IconButton> _cancel;
base::unique_qptr<Ui::MultiSelect> _select; base::unique_qptr<Ui::MultiSelect> _select;
rpl::variable<PeerData*> _from = nullptr;; rpl::variable<PeerData*> _from = nullptr;
base::Timer _searchTimer; base::Timer _searchTimer;

View file

@ -3665,7 +3665,7 @@ void ListWidget::performDrag() {
_reactionsManager->updateButton({}); _reactionsManager->updateButton({});
_controller->widget()->launchDrag( _controller->widget()->launchDrag(
std::move(mimeData), std::move(mimeData),
crl::guard(this, [=] { mouseActionUpdate(QCursor::pos()); }));; crl::guard(this, [=] { mouseActionUpdate(QCursor::pos()); }));
} }
} }

View file

@ -57,7 +57,7 @@ private:
friend class Inner; friend class Inner;
bool _available = false; bool _available = false;
rpl::variable<bool> _started = false;; rpl::variable<bool> _started = false;
rpl::event_stream<Update, rpl::empty_error> _updates; rpl::event_stream<Update, rpl::empty_error> _updates;
QThread _thread; QThread _thread;
std::unique_ptr<Inner> _inner; std::unique_ptr<Inner> _inner;

View file

@ -78,7 +78,7 @@ private:
return width() - contentLeft() - contentRight(); return width() - contentLeft() - contentRight();
} }
int contentHeight() const { int contentHeight() const {
return height() - contentTop() - contentBottom();; return height() - contentTop() - contentBottom();
} }
void startAnimation(); void startAnimation();

View file

@ -560,7 +560,7 @@ OverlayWidget::OverlayWidget()
|| type == QEvent::TouchEnd || type == QEvent::TouchEnd
|| type == QEvent::TouchCancel) { || type == QEvent::TouchCancel) {
if (handleTouchEvent(static_cast<QTouchEvent*>(e.get()))) { if (handleTouchEvent(static_cast<QTouchEvent*>(e.get()))) {
return base::EventFilterResult::Cancel;; return base::EventFilterResult::Cancel;
} }
} else if (type == QEvent::Wheel) { } else if (type == QEvent::Wheel) {
handleWheelEvent(static_cast<QWheelEvent*>(e.get())); handleWheelEvent(static_cast<QWheelEvent*>(e.get()));

View file

@ -132,7 +132,7 @@ private:
[[nodiscard]] bool isFinished() const; [[nodiscard]] bool isFinished() const;
private: private:
crl::time _startedAt = 0;; crl::time _startedAt = 0;
std::vector<anim::value> _animValues; std::vector<anim::value> _animValues;
PiePartData _current; PiePartData _current;
bool _isFinished = true; bool _isFinished = true;

View file

@ -819,7 +819,7 @@ EditorBlock::Row &EditorBlock::rowAtIndex(int index) {
} }
int EditorBlock::findRowIndex(const QString &name) const { int EditorBlock::findRowIndex(const QString &name) const {
return _indices.value(name, -1);; return _indices.value(name, -1);
} }
EditorBlock::Row *EditorBlock::findRow(const QString &name) { EditorBlock::Row *EditorBlock::findRow(const QString &name) {