diff --git a/src/App/GeoFeature.cpp b/src/App/GeoFeature.cpp index b09323d4d718..5c48f05afeae 100644 --- a/src/App/GeoFeature.cpp +++ b/src/App/GeoFeature.cpp @@ -268,7 +268,7 @@ const std::vector& GeoFeature::searchElementCache(const std::string return none; } -const std::vector& GeoFeature::getElementTypes(bool /*all*/) const +std::vector GeoFeature::getElementTypes(bool /*all*/) const { static std::vector nil; auto prop = getPropertyOfGeometry(); diff --git a/src/App/GeoFeature.h b/src/App/GeoFeature.h index d483a45243d5..aba2d0cb44cb 100644 --- a/src/App/GeoFeature.h +++ b/src/App/GeoFeature.h @@ -177,7 +177,7 @@ class AppExport GeoFeature : public App::DocumentObject virtual DocumentObject *getElementOwner(const Data::MappedName & /*name*/) const {return nullptr;} - virtual const std::vector& getElementTypes(bool all=true) const; + virtual std::vector getElementTypes(bool all=true) const; /// Return the higher level element names of the given element virtual std::vector getHigherElements(const char *name, bool silent=false) const;