X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fapplication.cpp;h=5a6e28a1da996034aa24218df7ef2d66eb425543;hp=f588fa3714ea44b8a17d63dbd3957923742018da;hb=b571a8e7e0dc3e3b6daa58f27050e76466f006dd;hpb=d2d0056dc4ff51ae814b136ff92c3458dfae27d3 diff --git a/pv/application.cpp b/pv/application.cpp index f588fa37..5a6e28a1 100644 --- a/pv/application.cpp +++ b/pv/application.cpp @@ -127,17 +127,17 @@ void Application::collect_version_info(shared_ptr context) #endif // Device drivers - for (auto entry : context->drivers()) + for (auto& entry : context->drivers()) driver_list_.emplace_back(QString::fromUtf8(entry.first.c_str()), QString::fromUtf8(entry.second->long_name().c_str())); // Input formats - for (auto entry : context->input_formats()) + for (auto& entry : context->input_formats()) input_format_list_.emplace_back(QString::fromUtf8(entry.first.c_str()), QString::fromUtf8(entry.second->description().c_str())); // Output formats - for (auto entry : context->output_formats()) + for (auto& entry : context->output_formats()) output_format_list_.emplace_back(QString::fromUtf8(entry.first.c_str()), QString::fromUtf8(entry.second->description().c_str())); @@ -159,35 +159,35 @@ void Application::print_version_info() cout << PV_TITLE << " " << PV_VERSION_STRING << endl; cout << endl << "Libraries and features:" << endl; - for (pair &entry : version_info_) + for (pair& entry : version_info_) cout << " " << entry.first.toStdString() << " " << entry.second.toStdString() << endl; cout << endl << "Firmware search paths:" << endl; - for (QString &entry : fw_path_list_) + for (QString& entry : fw_path_list_) cout << " " << entry.toStdString() << endl; cout << endl << "Protocol decoder search paths:" << endl; - for (QString &entry : pd_path_list_) + for (QString& entry : pd_path_list_) cout << " " << entry.toStdString() << endl; cout << endl << "Supported hardware drivers:" << endl; - for (pair &entry : driver_list_) + for (pair& entry : driver_list_) cout << " " << entry.first.leftJustified(21, ' ').toStdString() << entry.second.toStdString() << endl; cout << endl << "Supported input formats:" << endl; - for (pair &entry : input_format_list_) + for (pair& entry : input_format_list_) cout << " " << entry.first.leftJustified(21, ' ').toStdString() << entry.second.toStdString() << endl; cout << endl << "Supported output formats:" << endl; - for (pair &entry : output_format_list_) + for (pair& entry : output_format_list_) cout << " " << entry.first.leftJustified(21, ' ').toStdString() << entry.second.toStdString() << endl; #ifdef ENABLE_DECODE cout << endl << "Supported protocol decoders:" << endl; - for (pair &entry : pd_list_) + for (pair& entry : pd_list_) cout << " " << entry.first.leftJustified(21, ' ').toStdString() << entry.second.toStdString() << endl; #endif