Skip to content

Commit

Permalink
Fixes FreeCAD#14349: GeoFeature::getElementTypes causes undefined beh…
Browse files Browse the repository at this point in the history
…aviour
  • Loading branch information
wwmayer committed May 30, 2024
1 parent d16df44 commit a4c9b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App/GeoFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ const std::vector<std::string>& GeoFeature::searchElementCache(const std::string
return none;
}

const std::vector<const char*>& GeoFeature::getElementTypes(bool /*all*/) const
std::vector<const char*> GeoFeature::getElementTypes(bool /*all*/) const
{
static std::vector<const char*> nil;
auto prop = getPropertyOfGeometry();
Expand Down
2 changes: 1 addition & 1 deletion src/App/GeoFeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class AppExport GeoFeature : public App::DocumentObject
virtual DocumentObject *getElementOwner(const Data::MappedName & /*name*/) const
{return nullptr;}

virtual const std::vector<const char *>& getElementTypes(bool all=true) const;
virtual std::vector<const char *> getElementTypes(bool all=true) const;

/// Return the higher level element names of the given element
virtual std::vector<Data::IndexedName> getHigherElements(const char *name, bool silent=false) const;
Expand Down

0 comments on commit a4c9b66

Please sign in to comment.