Placefile GCC warning cleanup

This commit is contained in:
Dan Paulat 2023-08-23 07:50:25 -05:00
parent e7da934db1
commit 170e30ca6c
2 changed files with 2 additions and 4 deletions

View file

@ -77,8 +77,8 @@ public:
bool thresholded = false) :
p {impl},
name_ {name},
placefile_ {placefile},
title_ {title},
placefile_ {placefile},
enabled_ {enabled},
thresholded_ {thresholded}
{

View file

@ -302,9 +302,7 @@ void PlacefileModel::HandlePlacefileRemoved(const std::string& name)
if (it != p->placefileNames_.end())
{
// Placefile exists, delete row
const int row = std::distance(p->placefileNames_.begin(), it);
QModelIndex topLeft = createIndex(row, kFirstColumn);
QModelIndex bottomRight = createIndex(row, kLastColumn);
const int row = std::distance(p->placefileNames_.begin(), it);
beginRemoveRows(QModelIndex(), row, row);
p->placefileNames_.erase(it);