mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Silly compile fix
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8afd5e8bbc
commit
5670b5fedd
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ void LocationInformationWidget::mergeSelectedDiveSites() {
|
|||
return;
|
||||
|
||||
QModelIndexList selection = ui.diveSiteListView->selectionModel()->selectedIndexes();
|
||||
uint32_t *selected_dive_sites = (uint32_t*) malloc(sizeof(u_int32_t) * selection.count());
|
||||
uint32_t *selected_dive_sites = (uint32_t*) malloc(sizeof(uint32_t) * selection.count());
|
||||
int i = 0;
|
||||
Q_FOREACH(const QModelIndex& idx, selection) {
|
||||
selected_dive_sites[i] = (uint32_t) idx.data(LocationInformationModel::UUID_ROLE).toInt();
|
||||
|
|
Loading…
Reference in a new issue