• Koen Kooi's avatar
    fix qmin/qmax types · 0c66e26a
    Koen Kooi authored
    qreal is a double on some platforms (x86) and a float on others (e.g. ARM), cast it to fix build errors like these:
    
    src/ui/designer/QGCXYPlot.cc: In member function 'int
    XYPlotCurve::appendData(const QPointF&)':
    src/ui/designer/QGCXYPlot.cc:41:39: error: no matching function for call
    to 'qMin(double&, qreal)'
                 xmin = qMin(xmin, data.x());
                                           ^
    src/ui/designer/QGCXYPlot.cc:41:39: note: candidate is:
    In file included from
    /build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/sysroots/sama5d3_xplained/usr/include/qt4/QtCore/qnamespace.h:45:0,
                     from
    /build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/sysroots/sama5d3_xplained/usr/include/qt4/QtCore/qobjectdefs.h:45,
                     from
    /build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/sysroots/sama5d3_xplained/usr/include/qt4/QtGui/qwindowdefs.h:45,
                     from
    /build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/sysroots/sama5d3_xplained/usr/include/qt4/QtGui/qwidget.h:46,
                     from
    /build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/sysroots/sama5d3_xplained/usr/include/qt4/QtGui/qdockwidget.h:45,
                     from
    /build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/sysroots/sama5d3_xplained/usr/include/qt4/QtGui/QDockWidget:1,
                     from src/ui/designer/QGCXYPlot.cc:1:
    /build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/sysroots/sama5d3_xplained/usr/include/qt4/QtCore/qglobal.h:1213:34:
    note: template<class T> const T& qMin(const T&, const T&)
     Q_DECL_CONSTEXPR inline const T &qMin(const T &a, const T &b) { return
    (a < b) ? a : b; }
                                      ^
    
    See http://www.qtcentre.org/archive/index.php/t-45475.html for some
    background.
    
    This fixes #625
    Signed-off-by: 's avatarKoen Kooi <koen@dominion.thruhere.net>
    0c66e26a
Name
Last commit
Last update
..
qwt.h Loading commit data...
qwt.pri Loading commit data...
qwt_abstract_scale.cpp Loading commit data...
qwt_abstract_scale.h Loading commit data...
qwt_abstract_scale_draw.cpp Loading commit data...
qwt_abstract_scale_draw.h Loading commit data...
qwt_abstract_slider.cpp Loading commit data...
qwt_abstract_slider.h Loading commit data...
qwt_analog_clock.cpp Loading commit data...
qwt_analog_clock.h Loading commit data...
qwt_array.h Loading commit data...
qwt_arrow_button.cpp Loading commit data...
qwt_arrow_button.h Loading commit data...
qwt_clipper.cpp Loading commit data...
qwt_clipper.h Loading commit data...
qwt_color_map.cpp Loading commit data...
qwt_color_map.h Loading commit data...
qwt_compass.cpp Loading commit data...
qwt_compass.h Loading commit data...
qwt_compass_rose.cpp Loading commit data...
qwt_compass_rose.h Loading commit data...
qwt_counter.cpp Loading commit data...
qwt_counter.h Loading commit data...
qwt_curve_fitter.cpp Loading commit data...
qwt_curve_fitter.h Loading commit data...
qwt_data.cpp Loading commit data...
qwt_data.h Loading commit data...
qwt_dial.cpp Loading commit data...
qwt_dial.h Loading commit data...
qwt_dial_needle.cpp Loading commit data...
qwt_dial_needle.h Loading commit data...
qwt_double_interval.cpp Loading commit data...
qwt_double_interval.h Loading commit data...
qwt_double_range.cpp Loading commit data...
qwt_double_range.h Loading commit data...
qwt_double_rect.cpp Loading commit data...
qwt_double_rect.h Loading commit data...
qwt_dyngrid_layout.cpp Loading commit data...
qwt_dyngrid_layout.h Loading commit data...
qwt_event_pattern.cpp Loading commit data...
qwt_event_pattern.h Loading commit data...
qwt_global.h Loading commit data...
qwt_interval_data.cpp Loading commit data...
qwt_interval_data.h Loading commit data...
qwt_knob.cpp Loading commit data...
qwt_knob.h Loading commit data...
qwt_layout_metrics.cpp Loading commit data...
qwt_layout_metrics.h Loading commit data...
qwt_legend.cpp Loading commit data...
qwt_legend.h Loading commit data...
qwt_legend_item.cpp Loading commit data...
qwt_legend_item.h Loading commit data...
qwt_legend_itemmanager.h Loading commit data...
qwt_magnifier.cpp Loading commit data...
qwt_magnifier.h Loading commit data...
qwt_math.cpp Loading commit data...
qwt_math.h Loading commit data...
qwt_paint_buffer.cpp Loading commit data...
qwt_paint_buffer.h Loading commit data...
qwt_painter.cpp Loading commit data...
qwt_painter.h Loading commit data...
qwt_panner.cpp Loading commit data...
qwt_panner.h Loading commit data...
qwt_picker.cpp Loading commit data...
qwt_picker.h Loading commit data...
qwt_picker_machine.cpp Loading commit data...
qwt_picker_machine.h Loading commit data...
qwt_plot.cpp Loading commit data...
qwt_plot.h Loading commit data...
qwt_plot_axis.cpp Loading commit data...
qwt_plot_canvas.cpp Loading commit data...
qwt_plot_canvas.h Loading commit data...
qwt_plot_curve.cpp Loading commit data...
qwt_plot_curve.h Loading commit data...
qwt_plot_dict.cpp Loading commit data...
qwt_plot_dict.h Loading commit data...
qwt_plot_grid.cpp Loading commit data...
qwt_plot_grid.h Loading commit data...
qwt_plot_item.cpp Loading commit data...
qwt_plot_item.h Loading commit data...
qwt_plot_layout.cpp Loading commit data...
qwt_plot_layout.h Loading commit data...
qwt_plot_magnifier.cpp Loading commit data...
qwt_plot_magnifier.h Loading commit data...
qwt_plot_marker.cpp Loading commit data...
qwt_plot_marker.h Loading commit data...
qwt_plot_panner.cpp Loading commit data...
qwt_plot_panner.h Loading commit data...
qwt_plot_picker.cpp Loading commit data...
qwt_plot_picker.h Loading commit data...
qwt_plot_print.cpp Loading commit data...
qwt_plot_printfilter.cpp Loading commit data...
qwt_plot_printfilter.h Loading commit data...
qwt_plot_rasteritem.cpp Loading commit data...
qwt_plot_rasteritem.h Loading commit data...
qwt_plot_scaleitem.cpp Loading commit data...
qwt_plot_scaleitem.h Loading commit data...
qwt_plot_spectrogram.cpp Loading commit data...
qwt_plot_spectrogram.h Loading commit data...
qwt_plot_svgitem.cpp Loading commit data...
qwt_plot_svgitem.h Loading commit data...
qwt_plot_xml.cpp Loading commit data...
qwt_plot_zoomer.cpp Loading commit data...
qwt_plot_zoomer.h Loading commit data...
qwt_polygon.h Loading commit data...
qwt_raster_data.cpp Loading commit data...
qwt_raster_data.h Loading commit data...
qwt_rect.cpp Loading commit data...
qwt_rect.h Loading commit data...
qwt_round_scale_draw.cpp Loading commit data...
qwt_round_scale_draw.h Loading commit data...
qwt_scale_div.cpp Loading commit data...
qwt_scale_div.h Loading commit data...
qwt_scale_draw.cpp Loading commit data...
qwt_scale_draw.h Loading commit data...
qwt_scale_engine.cpp Loading commit data...
qwt_scale_engine.h Loading commit data...
qwt_scale_map.cpp Loading commit data...
qwt_scale_map.h Loading commit data...
qwt_scale_widget.cpp Loading commit data...
qwt_scale_widget.h Loading commit data...
qwt_slider.cpp Loading commit data...
qwt_slider.h Loading commit data...
qwt_spline.cpp Loading commit data...
qwt_spline.h Loading commit data...
qwt_symbol.cpp Loading commit data...
qwt_symbol.h Loading commit data...
qwt_text.cpp Loading commit data...
qwt_text.h Loading commit data...
qwt_text_engine.cpp Loading commit data...
qwt_text_engine.h Loading commit data...
qwt_text_label.cpp Loading commit data...
qwt_text_label.h Loading commit data...
qwt_thermo.cpp Loading commit data...
qwt_thermo.h Loading commit data...
qwt_valuelist.h Loading commit data...
qwt_wheel.cpp Loading commit data...
qwt_wheel.h Loading commit data...