X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fclipitem.cpp;h=2875be2b820c089a3b31a940942cd543fade982a;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=59d54d900e1af19656842dda4d28130bda339d60;hpb=45adaf0e93ffa28bfeb3425a099ca95e70fd0d79;p=kdenlive diff --git a/src/clipitem.cpp b/src/clipitem.cpp index 59d54d90..2875be2b 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -342,10 +342,10 @@ const QString ClipItem::adjustKeyframes(const QString &keyframes, int offset) { QStringList result; // Simple keyframes - const QStringList list = keyframes.split(';', QString::SkipEmptyParts); + const QStringList list = keyframes.split(QLatin1Char(';'), QString::SkipEmptyParts); foreach(const QString &keyframe, list) { - int pos = keyframe.section(':', 0, 0).toInt() - offset; - QString newKey = QString::number(pos) + ":" + keyframe.section(':', 1); + const int pos = keyframe.section(':', 0, 0).toInt() - offset; + const QString newKey = QString::number(pos) + ":" + keyframe.section(':', 1); result.append(newKey); } return result.join(";"); @@ -559,7 +559,8 @@ void ClipItem::updateKeyframeEffect() QDomElement ClipItem::selectedEffect() { - if (m_selectedEffect == -1 || m_effectList.isEmpty()) return QDomElement(); + if (m_selectedEffect == -1 || m_effectList.isEmpty()) + return QDomElement(); return effectAtIndex(m_selectedEffect); }