diff options
| author | in1tiate <woodward.randall02+github@gmail.com> | 2022-07-19 08:10:07 -0500 |
|---|---|---|
| committer | in1tiate <woodward.randall02+github@gmail.com> | 2022-07-19 08:10:07 -0500 |
| commit | df7214fdb596ad4854c52d7f85e57643997a9d0e (patch) | |
| tree | 946384fcc089dd603b84acf8db94494febb75a0f /src/aobutton.cpp | |
| parent | 972ce47fc2c9c9ddcb69488f53a0e85f3c78db83 (diff) | |
Make lambda captures of 'this' explicit
Diffstat (limited to 'src/aobutton.cpp')
| -rw-r--r-- | src/aobutton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aobutton.cpp b/src/aobutton.cpp index 242fe79a..6d25a05f 100644 --- a/src/aobutton.cpp +++ b/src/aobutton.cpp @@ -8,7 +8,7 @@ AOButton::AOButton(QWidget *parent, AOApplication *p_ao_app) { ao_app = p_ao_app; movie = new QMovie(this); - connect(movie, &QMovie::frameChanged, [=]{ + connect(movie, &QMovie::frameChanged, [this]{ this->setIcon(movie->currentPixmap().scaled(this->size(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation)); this->setIconSize(QSize(this->width(), this->height())); }); |
