// Firmware paths
l_orig = sr_resourcepaths_get(SR_RESOURCE_FIRMWARE);
for (GSList *l = l_orig; l; l = l->next)
- fw_path_list_.push_back(QString((char*)l->data));
+ fw_path_list_.emplace_back((char*)l->data);
g_slist_free_full(l_orig, g_free);
// PD paths
#ifdef ENABLE_DECODE
l_orig = srd_searchpaths_get();
for (GSList *l = l_orig; l; l = l->next)
- pd_path_list_.push_back(QString((char*)l->data));
+ pd_path_list_.emplace_back((char*)l->data);
g_slist_free_full(l_orig, g_free);
#endif
void Application::print_version_info()
{
- cout << PV_TITLE << PV_VERSION_STRING << endl;
+ cout << PV_TITLE << " " << PV_VERSION_STRING << endl;
cout << endl << "Libraries and features:" << endl;
for (pair<QString, QString> &entry : version_info_)
cout << " " << entry.first.leftJustified(21, ' ').toStdString() <<
entry.second.toStdString() << endl;
#endif
-
- cout << endl;
}
vector< pair<QString, QString> > Application::get_version_info() const