More fixes for compiler warnings - cleaning up code and making assumptions more clear
This commit is contained in:
@@ -224,6 +224,7 @@ void GraphingWindow::updatedFrames(int numFrames)
|
||||
|
||||
void GraphingWindow::plottableClick(QCPAbstractPlottable* plottable, int dataIdx, QMouseEvent* event)
|
||||
{
|
||||
Q_UNUSED(dataIdx);
|
||||
qDebug() << "plottableClick";
|
||||
double x, y;
|
||||
QCPGraph *graph = reinterpret_cast<QCPGraph *>(plottable);
|
||||
@@ -1150,7 +1151,7 @@ void GraphingWindow::createGraph(GraphParams ¶ms, bool createGraphParam)
|
||||
//qDebug() << tempVal;
|
||||
if (secondsMode)
|
||||
{
|
||||
params.x[j] = (double)(frameCache[k].timestamp) / 1000000.0;
|
||||
params.x[j] = (frameCache[k].timestamp) / 1000000.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ public:
|
||||
bool intelFormat;
|
||||
bool isSigned;
|
||||
uint64_t mask;
|
||||
float bias;
|
||||
float scale;
|
||||
double bias;
|
||||
double scale;
|
||||
int stride;
|
||||
int strideSoFar;
|
||||
QColor color;
|
||||
|
||||
@@ -51,7 +51,7 @@ void SnifferDelegate::paint(QPainter *painter, const QStyleOptionViewItem &optio
|
||||
|
||||
if (index.column() > 9) return;
|
||||
|
||||
int x, y;
|
||||
int x;
|
||||
SnifferItem *item = static_cast<SnifferItem*>(index.internalPointer());
|
||||
int idx = index.column() - 2;
|
||||
int val = item->getData(idx);
|
||||
|
||||
Reference in New Issue
Block a user