mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:10:04 +00:00
Placefile GCC warning cleanup
This commit is contained in:
parent
e7da934db1
commit
170e30ca6c
2 changed files with 2 additions and 4 deletions
|
|
@ -77,8 +77,8 @@ public:
|
||||||
bool thresholded = false) :
|
bool thresholded = false) :
|
||||||
p {impl},
|
p {impl},
|
||||||
name_ {name},
|
name_ {name},
|
||||||
placefile_ {placefile},
|
|
||||||
title_ {title},
|
title_ {title},
|
||||||
|
placefile_ {placefile},
|
||||||
enabled_ {enabled},
|
enabled_ {enabled},
|
||||||
thresholded_ {thresholded}
|
thresholded_ {thresholded}
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -302,9 +302,7 @@ void PlacefileModel::HandlePlacefileRemoved(const std::string& name)
|
||||||
if (it != p->placefileNames_.end())
|
if (it != p->placefileNames_.end())
|
||||||
{
|
{
|
||||||
// Placefile exists, delete row
|
// Placefile exists, delete row
|
||||||
const int row = std::distance(p->placefileNames_.begin(), it);
|
const int row = std::distance(p->placefileNames_.begin(), it);
|
||||||
QModelIndex topLeft = createIndex(row, kFirstColumn);
|
|
||||||
QModelIndex bottomRight = createIndex(row, kLastColumn);
|
|
||||||
|
|
||||||
beginRemoveRows(QModelIndex(), row, row);
|
beginRemoveRows(QModelIndex(), row, row);
|
||||||
p->placefileNames_.erase(it);
|
p->placefileNames_.erase(it);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue