@@ -191,12 +191,12 @@ class OpenProgressDialog : public ProgressLogger {
191191 protected:
192192 void logMessage (const string& message) override {
193193 ProgressLogger::logMessage (message);
194- progressDialog_.setLabelText (QString (). fromStdString (message));
194+ progressDialog_.setLabelText (QString:: fromStdString (message));
195195 qApp->processEvents ();
196196 }
197197 void logErrorMessage (const string& message) override {
198198 ProgressLogger::logErrorMessage (message);
199- progressDialog_.setLabelText (QString (). fromStdString (message));
199+ progressDialog_.setLabelText (QString:: fromStdString (message));
200200 qApp->processEvents ();
201201 }
202202 void updateStep (size_t progress, size_t maxProgress) override {
@@ -429,7 +429,7 @@ vector<FrameWidget*> FileReader::openFile(QVBoxLayout* videoFrames, QWidget* wid
429429 return frames;
430430}
431431
432- void FileReader::setOverlayColor (QColor color) {
432+ void FileReader::setOverlayColor (const QColor& color) {
433433 for (auto & image : imageReaders_) {
434434 image.second ->getWidget ()->setOverlayColor (color);
435435 }
@@ -1243,7 +1243,7 @@ void FileReader::loadConfiguration() {
12431243 fileConfig_ = make_unique<QSettings>(" VRSplayer" , ss.str ().c_str ());
12441244 layoutPresets_ = fileConfig_->value (kLayoutPresets ).toMap ();
12451245 if (DEBUG_CONFIG ) {
1246- for (auto key : layoutPresets_.keys ()) {
1246+ for (const auto & key : layoutPresets_.keys ()) {
12471247 QJsonDocument jdoc = QJsonDocument::fromVariant (layoutPresets_[key]);
12481248 QByteArray config = jdoc.toJson ();
12491249 XR_LOGI (" \n Preset {}: {}" , key.toStdString (), string (config.constData (), config.size ()));
@@ -1302,7 +1302,7 @@ void FileReader::setTimeRange(double start, double end, uint32_t firstDataRecord
13021302 firstDataRecordIndex_ = firstDataRecordIndex;
13031303 durationChanged (start, end, rawTimeToPosition (endTime_ - startTime_));
13041304 cout << " Player time range: " << helpers::humanReadableTimestamp (startTime_) << " - "
1305- << helpers::humanReadableTimestamp (end) << endl ;
1305+ << helpers::humanReadableTimestamp (end) << ' \n ' ;
13061306}
13071307
13081308} // namespace vrsp
0 commit comments