Commit d901abe7 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Code quality fixes

parent 79eade13
Pipeline #158713 canceled with stage
......@@ -44,7 +44,7 @@ int main(int argc, char **argv)
}
// Do we want a split render
if (args.count() > 0 && args.at(0) == QLatin1String("-split")) {
if (args.count() > 5 && args.at(0) == QLatin1String("-split")) {
args.removeFirst();
// chunks to render
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
......
......@@ -30,6 +30,7 @@ AbstractProjectItem::AbstractProjectItem(PROJECTITEMTYPE type, QString id, const
, m_date()
, m_binId(std::move(id))
, m_usage(0)
, m_AudioUsage(0)
, m_rating(0)
, m_clipStatus(FileStatus::StatusReady)
, m_itemType(type)
......
......@@ -228,7 +228,7 @@ void SubtitleModel::importSubtitle(const QString &filePath, int offset, bool ext
end.clear();
comment.clear();
QStringList dialogue = line.section(":", 1).split(QLatin1Char(','));
if (dialogue.count() >= textIndex) {
if (dialogue.count() > textIndex) {
//TIME
start = dialogue.at(1);
startPos= stringtoTime(start);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment