diff options
Diffstat (limited to 'Swift/QtUI/UserSearch/UserSearchModel.cpp')
-rw-r--r-- | Swift/QtUI/UserSearch/UserSearchModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/UserSearch/UserSearchModel.cpp b/Swift/QtUI/UserSearch/UserSearchModel.cpp index 782d2d0..f6fd4c0 100644 --- a/Swift/QtUI/UserSearch/UserSearchModel.cpp +++ b/Swift/QtUI/UserSearch/UserSearchModel.cpp @@ -43,7 +43,7 @@ QModelIndex UserSearchModel::index(int row, int column, const QModelIndex & pare if (!hasIndex(row, column, parent)) { return QModelIndex(); } - return row < (int)results_.size() ? createIndex(row, column, (void*)&(results_[row])) : QModelIndex(); + return row < static_cast<int>(results_.size()) ? createIndex(row, column, reinterpret_cast<void*>(const_cast<UserSearchResult*>(&(results_[row])))) : QModelIndex(); } QModelIndex UserSearchModel::parent(const QModelIndex& /*index*/) const { |