diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-06 16:50:11 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-06 16:50:11 +0200 |
| commit | f9756d10d4d1c5ea7737cf3a237b1f966d6b7a01 (patch) | |
| tree | c88df1366e9af3097edd2025494564ea92e0cb2a /src/managers/AnimationManager.cpp | |
| parent | 0d7a8cca790e8fa71a83e4dce09fbe5a0af38cbc (diff) | |
changed C++ std to C++23, use std::string::contains
Diffstat (limited to 'src/managers/AnimationManager.cpp')
| -rw-r--r-- | src/managers/AnimationManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 7574998d..96b667f9 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -309,7 +309,7 @@ void CAnimationManager::onWindowPostCreateClose(CWindow* pWindow, bool close) { if (pWindow->m_sAdditionalConfigData.animationStyle != "") { // the window has config'd special anim if (pWindow->m_sAdditionalConfigData.animationStyle.find("slide") == 0) { - if (pWindow->m_sAdditionalConfigData.animationStyle.find(' ') != std::string::npos) { + if (pWindow->m_sAdditionalConfigData.animationStyle.contains(' ')) { // has a direction animationSlide(pWindow, pWindow->m_sAdditionalConfigData.animationStyle.substr(pWindow->m_sAdditionalConfigData.animationStyle.find(' ') + 1), close); } else { |
