2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Move to std::optional.

This commit is contained in:
John Preston
2018-09-21 19:28:46 +03:00
parent 850efbde95
commit 2e5a0e056c
115 changed files with 632 additions and 672 deletions

View File

@@ -136,7 +136,7 @@ private:
void drawSimpleFrame(Painter &p, QRect to, QSize size) const;
Ui::GroupMediaLayout _layout;
base::optional<QRect> _animateFromGeometry;
std::optional<QRect> _animateFromGeometry;
const QImage _fullPreview;
const int _shrinkSize = 0;
QPixmap _albumImage;
@@ -229,7 +229,7 @@ AlbumThumb::AlbumThumb(
}
void AlbumThumb::resetLayoutAnimation() {
_animateFromGeometry = base::none;
_animateFromGeometry = std::nullopt;
}
void AlbumThumb::animateLayoutToInitial() {