mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Use gsl::finally() instead of base::scope_guard().
This commit is contained in:
@@ -186,7 +186,7 @@ void LayerStackWidget::BackgroundWidget::paintEvent(QPaintEvent *e) {
|
||||
Painter p(this);
|
||||
|
||||
_inPaintEvent = true;
|
||||
auto guard = base::scope_guard([this] {
|
||||
auto guard = gsl::finally([this] {
|
||||
_inPaintEvent = false;
|
||||
checkIfDone();
|
||||
});
|
||||
|
Reference in New Issue
Block a user