Fix various clazy warnings
This commit is contained in:
@@ -294,7 +294,8 @@ void TranscodeDialog::UpdateProgress() {
|
||||
int progress = (finished_success_ + finished_failed_) * 100;
|
||||
|
||||
QMap<QString, float> current_jobs = transcoder_->GetProgress();
|
||||
for (float value : current_jobs.values()) {
|
||||
QList<float> values = current_jobs.values();
|
||||
for (const float value : values) {
|
||||
progress += qBound(0, int(value * 100), 99);
|
||||
}
|
||||
|
||||
|
||||
@@ -304,7 +304,7 @@ QString Transcoder::GetFile(const QString &input, const TranscoderPreset &preset
|
||||
QString filename = fileinfo_output.completeBaseName();
|
||||
QString suffix = fileinfo_output.suffix();
|
||||
for (int i = 0;; ++i) {
|
||||
QString new_filename = QString("%1/%2-%3.%4").arg(path).arg(filename).arg(i).arg(suffix);
|
||||
QString new_filename = QString("%1/%2-%3.%4").arg(path, filename).arg(i).arg(suffix);
|
||||
fileinfo_output.setFile(new_filename);
|
||||
if (!fileinfo_output.exists()) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user