summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divepicturewidget.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-06 11:11:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-06 11:12:28 -0700
commit9e45999a01471678001af1b2c292776cf30253ce (patch)
treedd1a0719ea90ca443cbe095569df87e04fb1f8ab /desktop-widgets/divepicturewidget.cpp
parent38af1f2ab93f2ed20552b0869a02844778138739 (diff)
downloadsubsurface-9e45999a01471678001af1b2c292776cf30253ce.tar.gz
Fix some warnings
Two unused variables and one case of sign confusion. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/divepicturewidget.cpp')
-rw-r--r--desktop-widgets/divepicturewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/divepicturewidget.cpp b/desktop-widgets/divepicturewidget.cpp
index 92a61cba7..fcdd010da 100644
--- a/desktop-widgets/divepicturewidget.cpp
+++ b/desktop-widgets/divepicturewidget.cpp
@@ -31,7 +31,7 @@ void DivePictureWidget::doubleClicked(const QModelIndex &index)
void DivePictureWidget::mousePressEvent(QMouseEvent *event)
{
- ulong doubleClickInterval = static_cast<ulong>(qApp->styleHints()->mouseDoubleClickInterval());
+ int doubleClickInterval = qApp->styleHints()->mouseDoubleClickInterval();
static qint64 lasttime = 0L;
qint64 timestamp = QDateTime::currentDateTime().toMSecsSinceEpoch();