]> sigrok.org Git - pulseview.git/commitdiff
Implement fixes proposed by clang-tidy
authorSoeren Apel <redacted>
Sun, 14 Oct 2018 20:56:08 +0000 (22:56 +0200)
committerUwe Hermann <redacted>
Tue, 16 Oct 2018 21:37:19 +0000 (23:37 +0200)
pv/application.cpp
pv/dialogs/settings.cpp

index 1bc844a4420c98ccbcfb289ef3db40bedc589013..f588fa3714ea44b8a17d63dbd3957923742018da 100644 (file)
@@ -115,14 +115,14 @@ void Application::collect_version_info(shared_ptr<sigrok::Context> context)
        // 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
 
index 0795879675054403477a3744ebec6079c7a34246..d17f5d04c35cd61d02be0fec28da8af89750701f 100644 (file)
@@ -54,7 +54,6 @@
 #include <libsigrokdecode/libsigrokdecode.h>
 #endif
 
-using std::shared_ptr;
 using pv::widgets::ColorButton;
 
 namespace pv {