diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 882cf43799..1b9b0c8b06 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -113,7 +113,7 @@ bool PropertyItem::hasProperty(const App::Property* prop) const bool PropertyItem::removeProperty(const App::Property* prop) { - std::vector::const_iterator it = std::find(propertyItems.begin(), propertyItems.end(), prop); + std::vector::iterator it = std::find(propertyItems.begin(), propertyItems.end(), prop); if (it != propertyItems.end()) { propertyItems.erase(it); } diff --git a/src/Gui/propertyeditor/PropertyModel.cpp b/src/Gui/propertyeditor/PropertyModel.cpp index 7c7fd41e61..7071dcc21d 100644 --- a/src/Gui/propertyeditor/PropertyModel.cpp +++ b/src/Gui/propertyeditor/PropertyModel.cpp @@ -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; rowchild(row);