Skip to content

Commit 61544e8

Browse files
committed
Fix some warnings
1 parent 896b0da commit 61544e8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/CipherDialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
</widget>
220220
</item>
221221
<item row="5" column="0">
222-
<widget class="QLabel" name="label_2">
222+
<widget class="QLabel" name="label_6">
223223
<property name="text">
224224
<string>Plaintext Header Size</string>
225225
</property>

src/EditDialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class EditDialog : public QDialog
2020
~EditDialog() override;
2121

2222
void setCurrentIndex(const QModelIndex& idx);
23-
QPersistentModelIndex currentIndex() { return m_currentIndex; };
23+
QPersistentModelIndex currentIndex() const { return m_currentIndex; }
2424

2525
public slots:
2626
void setFocus();

src/ExtendedTableWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ void ExtendedTableWidget::currentChanged(const QModelIndex &current, const QMode
10611061

10621062
void ExtendedTableWidget::setToNull(const QModelIndexList& indices)
10631063
{
1064-
SqliteTableModel* m = qobject_cast<SqliteTableModel*>(const_cast<QAbstractItemModel*>(model()));
1064+
SqliteTableModel* m = qobject_cast<SqliteTableModel*>(model());
10651065
sqlb::TablePtr currentTable = m->db().getObjectByName<sqlb::Table>(m->currentTableName());
10661066

10671067
// Check if some column in the selection has a NOT NULL constraint, before trying to update the cells.

0 commit comments

Comments
 (0)