More fixes for compiler warnings - cleaning up code and making assumptions more clear

This commit is contained in:
Collin Kidder
2019-08-12 22:02:07 -04:00
parent ce427a75b0
commit b6a15a28cd
6 changed files with 78 additions and 73 deletions
+2 -1
View File
@@ -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 &params, 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
View File
@@ -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;
+1 -1
View File
@@ -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);