qcustomsplot: fix Clang Warnings[core.UndefinedBinaryOperatorResult]

qcustomplot.cpp:21229:13: warning: The left operand of '==' is a garbage value [core.UndefinedBinaryOperatorResult]
qcustomplot.cpp:21274:13: warning: The left operand of '==' is a garbage value [core.UndefinedBinaryOperatorResult]
qcustomplot.cpp:35323:13: warning: The left operand of '==' is a garbage value [core.UndefinedBinaryOperatorResult]
qcustomplot.cpp:35349:13: warning: The left operand of '==' is a garbage value [core.UndefinedBinaryOperatorResult]
This commit is contained in:
Alexis La Goutte 2022-01-08 13:18:21 +00:00 committed by A Wireshark GitLab Utility
parent d4a3aabc27
commit 3afa8264cb
1 changed files with 4 additions and 4 deletions

View File

@ -21224,7 +21224,7 @@ void QCPGraph::drawLegendIcon(QCPPainter *painter, const QRectF &rect) const
void QCPGraph::getLines(QVector<QPointF> *lines, const QCPDataRange &dataRange) const
{
if (!lines) return;
QCPGraphDataContainer::const_iterator begin, end;
QCPGraphDataContainer::const_iterator begin = 0, end = 0;
getVisibleDataBounds(begin, end, dataRange);
if (begin == end)
{
@ -21269,7 +21269,7 @@ void QCPGraph::getScatters(QVector<QPointF> *scatters, const QCPDataRange &dataR
QCPAxis *valueAxis = mValueAxis.data();
if (!keyAxis || !valueAxis) { qDebug() << Q_FUNC_INFO << "invalid key or value axis"; scatters->clear(); return; }
QCPGraphDataContainer::const_iterator begin, end;
QCPGraphDataContainer::const_iterator begin = 0, end = 0;
getVisibleDataBounds(begin, end, dataRange);
if (begin == end)
{
@ -35318,7 +35318,7 @@ void QCPPolarGraph::getVisibleDataBounds(QCPGraphDataContainer::const_iterator &
void QCPPolarGraph::getLines(QVector<QPointF> *lines, const QCPDataRange &dataRange) const
{
if (!lines) return;
QCPGraphDataContainer::const_iterator begin, end;
QCPGraphDataContainer::const_iterator begin = 0, end = 0;
getVisibleDataBounds(begin, end, dataRange);
if (begin == end)
{
@ -35344,7 +35344,7 @@ void QCPPolarGraph::getScatters(QVector<QPointF> *scatters, const QCPDataRange &
if (!keyAxis || !valueAxis) { qDebug() << Q_FUNC_INFO << "invalid key or value axis"; return; }
if (!scatters) return;
QCPGraphDataContainer::const_iterator begin, end;
QCPGraphDataContainer::const_iterator begin = 0, end = 0;
getVisibleDataBounds(begin, end, dataRange);
if (begin == end)
{