diff --git a/Telegram/SourceFiles/boxes/share_box.cpp b/Telegram/SourceFiles/boxes/share_box.cpp index 1ffcc1ddf..d1b3dbb37 100644 --- a/Telegram/SourceFiles/boxes/share_box.cpp +++ b/Telegram/SourceFiles/boxes/share_box.cpp @@ -848,7 +848,7 @@ void ShareBox::Inner::loadProfilePhotos(int yFrom) { if (!_chatsIndexed->empty()) { const auto index = yFrom / _rowHeight; auto i = _chatsIndexed->begin() - + std::min(index, _chatsIndexed->size());; + + std::min(index, _chatsIndexed->size()); for (auto end = _chatsIndexed->cend(); i != end; ++i) { if (((*i)->index() * _rowHeight) >= yTo) { break; diff --git a/Telegram/SourceFiles/data/data_user.cpp b/Telegram/SourceFiles/data/data_user.cpp index b90da3934..3f83a9e94 100644 --- a/Telegram/SourceFiles/data/data_user.cpp +++ b/Telegram/SourceFiles/data/data_user.cpp @@ -368,7 +368,7 @@ QString UserData::username() const { } QString UserData::editableUsername() const { - return _username.editableUsername();; + return _username.editableUsername(); } const std::vector &UserData::usernames() const { diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index 0e7c417d6..4aa36ec38 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -2695,7 +2695,7 @@ void Widget::filterCursorMoved() { } void Widget::completeHashtag(QString tag) { - const auto t = _filter->getLastText();; + const auto t = _filter->getLastText(); auto cur = _filter->textCursor().position(); auto hashtag = QString(); for (int start = cur; start > 0;) { diff --git a/Telegram/SourceFiles/history/view/controls/history_view_compose_search.cpp b/Telegram/SourceFiles/history/view/controls/history_view_compose_search.cpp index 0786b0745..d1dbbd0e3 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_compose_search.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_compose_search.cpp @@ -281,7 +281,7 @@ private: base::unique_qptr _cancel; base::unique_qptr _select; - rpl::variable _from = nullptr;; + rpl::variable _from = nullptr; base::Timer _searchTimer; diff --git a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp index 08332097f..308827cbb 100644 --- a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp @@ -3665,7 +3665,7 @@ void ListWidget::performDrag() { _reactionsManager->updateButton({}); _controller->widget()->launchDrag( std::move(mimeData), - crl::guard(this, [=] { mouseActionUpdate(QCursor::pos()); }));; + crl::guard(this, [=] { mouseActionUpdate(QCursor::pos()); })); } } diff --git a/Telegram/SourceFiles/media/audio/media_audio_capture.h b/Telegram/SourceFiles/media/audio/media_audio_capture.h index 107274c0c..4bb23c2b0 100644 --- a/Telegram/SourceFiles/media/audio/media_audio_capture.h +++ b/Telegram/SourceFiles/media/audio/media_audio_capture.h @@ -57,7 +57,7 @@ private: friend class Inner; bool _available = false; - rpl::variable _started = false;; + rpl::variable _started = false; rpl::event_stream _updates; QThread _thread; std::unique_ptr _inner; diff --git a/Telegram/SourceFiles/media/player/media_player_panel.h b/Telegram/SourceFiles/media/player/media_player_panel.h index 17446fdc5..9123834ce 100644 --- a/Telegram/SourceFiles/media/player/media_player_panel.h +++ b/Telegram/SourceFiles/media/player/media_player_panel.h @@ -78,7 +78,7 @@ private: return width() - contentLeft() - contentRight(); } int contentHeight() const { - return height() - contentTop() - contentBottom();; + return height() - contentTop() - contentBottom(); } void startAnimation(); diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index 20e41ce7c..012819648 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -560,7 +560,7 @@ OverlayWidget::OverlayWidget() || type == QEvent::TouchEnd || type == QEvent::TouchCancel) { if (handleTouchEvent(static_cast(e.get()))) { - return base::EventFilterResult::Cancel;; + return base::EventFilterResult::Cancel; } } else if (type == QEvent::Wheel) { handleWheelEvent(static_cast(e.get())); diff --git a/Telegram/SourceFiles/statistics/view/stack_linear_chart_view.h b/Telegram/SourceFiles/statistics/view/stack_linear_chart_view.h index 8e59798dc..cc147a736 100644 --- a/Telegram/SourceFiles/statistics/view/stack_linear_chart_view.h +++ b/Telegram/SourceFiles/statistics/view/stack_linear_chart_view.h @@ -132,7 +132,7 @@ private: [[nodiscard]] bool isFinished() const; private: - crl::time _startedAt = 0;; + crl::time _startedAt = 0; std::vector _animValues; PiePartData _current; bool _isFinished = true; diff --git a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp index ac217b30b..bd1e5c311 100644 --- a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp @@ -819,7 +819,7 @@ EditorBlock::Row &EditorBlock::rowAtIndex(int index) { } int EditorBlock::findRowIndex(const QString &name) const { - return _indices.value(name, -1);; + return _indices.value(name, -1); } EditorBlock::Row *EditorBlock::findRow(const QString &name) {