diff options
author | Gerald Combs <gerald@wireshark.org> | 2017-12-14 16:53:59 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2017-12-14 20:27:09 +0000 |
commit | 629596ebefa34a2677c341ab899e51cecbe254f0 (patch) | |
tree | 96a4e5c1d28b2ac86577872b69684555348b3962 | |
parent | db740987fffeb7e8122a6cd40e25f16244af5721 (diff) |
Qt: Constify a variable.
Change-Id: Icb3ce93d24ffbdf4ac6d3b70e7baa1f991169ac3
Reviewed-on: https://code.wireshark.org/review/24823
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r-- | ui/qt/models/fileset_entry_model.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/models/fileset_entry_model.cpp b/ui/qt/models/fileset_entry_model.cpp index ffe87bea67..9e8f7b5854 100644 --- a/ui/qt/models/fileset_entry_model.cpp +++ b/ui/qt/models/fileset_entry_model.cpp @@ -37,7 +37,7 @@ QVariant FilesetEntryModel::data(const QModelIndex &index, int role) const if ( ! index.isValid() || index.row() >= rowCount() ) return QVariant(); - fileset_entry *entry = static_cast<fileset_entry*>(index.internalPointer()); + const fileset_entry *entry = static_cast<fileset_entry*>(index.internalPointer()); if (role == Qt::DisplayRole && entry) { switch (index.column()) { case Name: |