projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Settings: Prettify the settings dialog
[pulseview.git]
/
pv
/
widgets
/
sweeptimingwidget.cpp
diff --git
a/pv/widgets/sweeptimingwidget.cpp
b/pv/widgets/sweeptimingwidget.cpp
index b2c0e6370d44587ce88a2063704bc14bb3a7b54d..be2c8b895496eb0d2fa5994e1605533ad45c91d7 100644
(file)
--- a/
pv/widgets/sweeptimingwidget.cpp
+++ b/
pv/widgets/sweeptimingwidget.cpp
@@
-14,17
+14,14
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "sweeptimingwidget.hpp"
#include <cstdlib>
*/
#include "sweeptimingwidget.hpp"
#include <cstdlib>
-
#include <vector>
#include <vector>
-
-#include <assert.h>
+#include <cassert>
#include <extdef.h>
#include <extdef.h>
@@
-88,8
+85,7
@@
void SweepTimingWidget::show_list(const uint64_t *vals, size_t count)
value_type_ = List;
list_.clear();
value_type_ = List;
list_.clear();
- for (size_t i = 0; i < count; i++)
- {
+ for (size_t i = 0; i < count; i++) {
char *const s = sr_si_string_u64(vals[i], suffix_);
list_.addItem(QString::fromUtf8(s),
qVariantFromValue(vals[i]));
char *const s = sr_si_string_u64(vals[i], suffix_);
list_.addItem(QString::fromUtf8(s),
qVariantFromValue(vals[i]));
@@
-142,8
+138,7
@@
void SweepTimingWidget::show_125_list(uint64_t min, uint64_t max)
uint64_t SweepTimingWidget::value() const
{
uint64_t SweepTimingWidget::value() const
{
- switch(value_type_)
- {
+ switch(value_type_) {
case None:
return 0;
case None:
return 0;