]> sigrok.org Git - pulseview.git/commitdiff
Fixed pv::dialogs::About to accomodate 42515b0f in libsigrokdecode
authorJoel Holdsworth <redacted>
Tue, 1 Jan 2013 19:47:24 +0000 (19:47 +0000)
committerJoel Holdsworth <redacted>
Tue, 1 Jan 2013 19:56:31 +0000 (19:56 +0000)
pv/dialogs/about.cpp

index a7778549b3438c47ab493bcb00f2516a5f9b6fae..9195b83bb56d67cf56022fb4c207ae2a00e54de8 100644 (file)
@@ -41,7 +41,6 @@ About::About(QWidget *parent) :
        QDialog(parent),
        ui(new Ui::About)
 {
-       GSList *l;
        struct sr_dev_driver **drivers;
        struct sr_input_format **inputs;
        struct sr_output_format **outputs;
@@ -93,7 +92,7 @@ About::About(QWidget *parent) :
        s.append("<tr><td colspan=\"2\"><b>" +
                tr("Supported protocol decoders:") +
                "</b></td></tr>");
-       for (l = srd_decoder_list(); l; l = l->next) {
+       for (const GSList *l = srd_decoder_list(); l; l = l->next) {
                dec = (struct srd_decoder *)l->data;
                s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
                         .arg(QString(dec->id))