summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-07-12 15:01:20 +0300
committerAhmad Samir <a.samirh78@gmail.com>2023-07-12 23:48:29 +0300
commitf54492c32721d713fc5910f06bd24fc370c0fc5f (patch)
tree828c19b5e25c1fd30076732e2be3a443c7d5e71c /src
parent7a07dfa910378289adde32d68126b911d158cfb5 (diff)
Implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
Change-Id: I70fe1b26741376dbd112512b27a0d92e8d7d99f5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/tts/mock/qtexttospeech_mock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tts/mock/qtexttospeech_mock.cpp b/src/plugins/tts/mock/qtexttospeech_mock.cpp
index a5b0e7e..fdcea8d 100644
--- a/src/plugins/tts/mock/qtexttospeech_mock.cpp
+++ b/src/plugins/tts/mock/qtexttospeech_mock.cpp
@@ -71,7 +71,7 @@ QList<QVoice> QTextToSpeechEngineMock::availableVoices() const
}
} else {
const QString voiceData = m_locale.bcp47Name();
- const auto newVoice = [=](const QString &name, QVoice::Gender gender,
+ const auto newVoice = [this, &voiceData](const QString &name, QVoice::Gender gender,
QVoice::Age age, const char *suffix) {
return createVoice(name, m_locale, gender, age, voiceData + suffix);
};