+ fix build failure with gcc
This commit is contained in:
@@ -113,7 +113,7 @@ bool PropertyItem::hasProperty(const App::Property* prop) const
|
||||
|
||||
bool PropertyItem::removeProperty(const App::Property* prop)
|
||||
{
|
||||
std::vector<App::Property*>::const_iterator it = std::find(propertyItems.begin(), propertyItems.end(), prop);
|
||||
std::vector<App::Property*>::iterator it = std::find(propertyItems.begin(), propertyItems.end(), prop);
|
||||
if (it != propertyItems.end()) {
|
||||
propertyItems.erase(it);
|
||||
}
|
||||
|
||||
@@ -314,7 +314,6 @@ void PropertyModel::appendProperty(const App::Property& prop)
|
||||
|
||||
void PropertyModel::removeProperty(const App::Property& prop)
|
||||
{
|
||||
int column = 1;
|
||||
int numChild = rootItem->childCount();
|
||||
for (int row=0; row<numChild; row++) {
|
||||
PropertyItem* child = rootItem->child(row);
|
||||
|
||||
Reference in New Issue
Block a user