diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-14 02:31:36 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 02:31:36 -0600 |
| commit | 764b2f8944ef4d40a3829c1e55112b0cb4ff32fe (patch) | |
| tree | 76db40f16c2e290ca8df7aff27597b6509f28e4f /src/animationlayer.cpp | |
| parent | ed8bc457351005b8590de5a70f8004edcf1635c1 (diff) | |
| parent | a9e2ea19508ceb120fbe8a570d35e651c15f819a (diff) | |
Merge pull request #1067 from AttorneyOnline/cleanup
Very cool and professional cleanup of clazy warnings
Diffstat (limited to 'src/animationlayer.cpp')
| -rw-r--r-- | src/animationlayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/animationlayer.cpp b/src/animationlayer.cpp index 7ffe1d7f..771904b9 100644 --- a/src/animationlayer.cpp +++ b/src/animationlayer.cpp @@ -435,7 +435,7 @@ void CharacterAnimationLayer::loadCharacterEmote(QString character, QString file QVector<VPath> path_list; QVector<QString> prefixed_emote_list; - for (const QString &prefix : qAsConst(prefixes)) + for (const QString &prefix : std::as_const(prefixes)) { path_list << ao_app->get_character_path(character, prefix + m_emote); prefixed_emote_list << prefix + m_emote; @@ -479,13 +479,13 @@ void CharacterAnimationLayer::setFrameEffects(QStringList data) const EffectType effect_type = EFFECT_TYPE_LIST.at(i); QStringList emotes = data.at(i).split("^"); - for (const QString &emote : qAsConst(emotes)) + for (const QString &emote : std::as_const(emotes)) { QStringList emote_effects = emote.split("|"); const QString emote_name = emote_effects.takeFirst(); - for (const QString &raw_effect : qAsConst(emote_effects)) + for (const QString &raw_effect : std::as_const(emote_effects)) { QStringList frame_data = raw_effect.split("="); @@ -553,7 +553,7 @@ void CharacterAnimationLayer::notifyFrameEffect(int frameNumber) auto it = m_effects.constFind(frameNumber); if (it != m_effects.constEnd()) { - for (const FrameEffect &effect : qAsConst(*it)) + for (const FrameEffect &effect : std::as_const(*it)) { if (effect.emote_name == m_resolved_emote) { |
