]> sigrok.org Git - pulseview.git/commitdiff
Minor whitespace fixes.
authorUwe Hermann <redacted>
Sun, 3 Mar 2013 16:20:00 +0000 (17:20 +0100)
committerUwe Hermann <redacted>
Sun, 3 Mar 2013 16:20:00 +0000 (17:20 +0100)
pv/prop/binding/binding.cpp
pv/prop/enum.cpp
pv/samplingbar.cpp
pv/view/logicsignal.cpp
test/data/logicsnapshot.cpp

index 9455ad5905258d00bb4c1c7518610754490ab291..5d411686f4a820f8ea686e191091f1b6d8c5500b 100644 (file)
@@ -40,7 +40,7 @@ Binding::Binding() :
 
 QWidget* Binding::get_form(QWidget *parent)
 {
-       if(_form)
+       if (_form)
                return _form;
 
        _form = new QWidget(parent);
index 1694840a1c7a69357e860bbe047e4af2b681f4fe..a222c70bab490b2db8837a97f2ddb1efc59473a1 100644 (file)
@@ -43,11 +43,11 @@ Enum::Enum(QString name,
 
 QWidget* Enum::get_widget(QWidget *parent)
 {
-       if(_selector)
+       if (_selector)
                return _selector;
 
        _selector = new QComboBox(parent);
-       for(vector< pair<const void*, QString> >::const_iterator i =
+       for (vector< pair<const void*, QString> >::const_iterator i =
                        _values.begin();
                i != _values.end(); i++)
                _selector->addItem((*i).second,
@@ -60,7 +60,7 @@ void Enum::commit()
 {
        assert(_setter);
 
-       if(!_selector)
+       if (!_selector)
                return;
 
        const int index = _selector->currentIndex();
index b406790988e86bd3106d3a4b55ac582e8a34d1e8..e46a39725b56de89aeb2cb156c54b9aee4a9e49d 100644 (file)
@@ -77,7 +77,7 @@ SamplingBar::SamplingBar(QWidget *parent) :
        _sample_rate_value.setDecimals(0);
        _sample_rate_value.setSuffix("Hz");
 
-       for(size_t i = 0; i < countof(RecordLengths); i++)
+       for (size_t i = 0; i < countof(RecordLengths); i++)
        {
                const uint64_t &l = RecordLengths[i];
                char *const text = sr_si_string_u64(l, " samples");
@@ -85,7 +85,7 @@ SamplingBar::SamplingBar(QWidget *parent) :
                        qVariantFromValue(l));
                g_free(text);
 
-               if(l == DefaultRecordLength)
+               if (l == DefaultRecordLength)
                        _record_length_selector.setCurrentIndex(i);
        }
 
index 78ba59bcd03c1fdedd825b380f71f00d0c2e6947..7bf43594b602934ef5fca0b284cbbb7873a3a44f 100644 (file)
@@ -92,7 +92,7 @@ void LogicSignal::paint(QPainter &p, int y, int left, int right,
        double samplerate = _data->get_samplerate();
 
        // Show sample rate as 1Hz when it is unknown
-       if(samplerate == 0.0)
+       if (samplerate == 0.0)
                samplerate = 1.0;
 
        const double pixels_offset = offset / scale;
index 67321c863557c564dbe57b92ab1d0663fc3815f3..bbc7438338cf6a5df14ef18eebd2ef59c83417d1 100644 (file)
@@ -490,7 +490,7 @@ BOOST_AUTO_TEST_CASE(WideData)
        logic.length = Length * sizeof(data[0]);
        logic.data = data;
 
-       for(int i = 0; i < Length; i++)
+       for (int i = 0; i < Length; i++)
                data[i] = 0x0FF0;
 
        LogicSnapshot s(logic);
@@ -522,7 +522,7 @@ BOOST_AUTO_TEST_CASE(Sixteen)
        logic.length = Length * sizeof(data[0]);
        logic.data = data;
 
-       for(int i = 0; i < Length; i++)
+       for (int i = 0; i < Length; i++)
                data[i] = 0xFFFE;
 
        LogicSnapshot s(logic);