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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user