mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:53:23 +00:00
Fix some warnings
Two unused variables and one case of sign confusion. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
38af1f2ab9
commit
9e45999a01
3 changed files with 1 additions and 3 deletions
|
@ -373,7 +373,6 @@ static dc_status_t read_ostc4_settings(dc_device_t *device, DeviceDetails *m_dev
|
|||
dc_event_progress_t progress;
|
||||
progress.current = 0;
|
||||
progress.maximum = 23;
|
||||
unsigned char hardware[1];
|
||||
|
||||
EMIT_PROGRESS();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -113,7 +113,6 @@ struct CurrSelected {
|
|||
QWidget *ComboBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
{
|
||||
Q_UNUSED(option)
|
||||
MainWindow *m = MainWindow::instance();
|
||||
QComboBox *comboDelegate = new QComboBox(parent);
|
||||
comboDelegate->setModel(model);
|
||||
comboDelegate->setEditable(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue