From d158c50c4831ff30ce321bc652e740ff78347a1e Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 29 Mar 2021 01:16:04 +0200 Subject: [PATCH] App: [skip ci] rename class to PropertyLinkT --- src/App/DocumentObserver.cpp | 20 ++++++++++---------- src/App/DocumentObserver.h | 14 +++++++------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/App/DocumentObserver.cpp b/src/App/DocumentObserver.cpp index be3d1b7178..97ddbfd5c0 100644 --- a/src/App/DocumentObserver.cpp +++ b/src/App/DocumentObserver.cpp @@ -398,13 +398,13 @@ std::vector SubObjectT::getSubObjectList() const { // ----------------------------------------------------------------------------- -PropertyListT::PropertyListT() +PropertyLinkT::PropertyLinkT() : toPython("None") { } -PropertyListT::PropertyListT(DocumentObject *obj) - : PropertyListT() +PropertyLinkT::PropertyLinkT(DocumentObject *obj) + : PropertyLinkT() { if (obj) { std::ostringstream str; @@ -415,8 +415,8 @@ PropertyListT::PropertyListT(DocumentObject *obj) } } -PropertyListT::PropertyListT(DocumentObject *obj, const std::vector& subNames) - : PropertyListT() +PropertyLinkT::PropertyLinkT(DocumentObject *obj, const std::vector& subNames) + : PropertyLinkT() { if (obj) { std::ostringstream str; @@ -430,8 +430,8 @@ PropertyListT::PropertyListT(DocumentObject *obj, const std::vector } } -PropertyListT::PropertyListT(const std::vector& objs) - : PropertyListT() +PropertyLinkT::PropertyLinkT(const std::vector& objs) + : PropertyLinkT() { if (!objs.empty()) { std::stringstream str; @@ -454,8 +454,8 @@ PropertyListT::PropertyListT(const std::vector& objs) } } -PropertyListT::PropertyListT(const std::vector& objs, const std::vector& subNames) - : PropertyListT() +PropertyLinkT::PropertyLinkT(const std::vector& objs, const std::vector& subNames) + : PropertyLinkT() { if (!objs.empty() && objs.size() == subNames.size()) { std::stringstream str; @@ -484,7 +484,7 @@ PropertyListT::PropertyListT(const std::vector& objs, const std } } -std::string PropertyListT::getPropertyPython() const +std::string PropertyLinkT::getPropertyPython() const { return toPython; } diff --git a/src/App/DocumentObserver.h b/src/App/DocumentObserver.h index 21416b96e2..e5ac8e6e8b 100644 --- a/src/App/DocumentObserver.h +++ b/src/App/DocumentObserver.h @@ -212,25 +212,25 @@ private: }; /** - * The PropertyListT class is a helper class to create Python statements for proprty links. + * The PropertyLinkT class is a helper class to create Python statements for proprty links. */ -class AppExport PropertyListT +class AppExport PropertyLinkT { public: /*! Constructor */ - PropertyListT(); + PropertyLinkT(); /*! Constructor */ - PropertyListT(DocumentObject *obj); + PropertyLinkT(DocumentObject *obj); /*! Constructor */ - PropertyListT(DocumentObject *obj, const std::vector& subNames); + PropertyLinkT(DocumentObject *obj, const std::vector& subNames); /*! Constructor */ - PropertyListT(const std::vector& objs); + PropertyLinkT(const std::vector& objs); /*! Constructor */ - PropertyListT(const std::vector& objs, const std::vector& subNames); + PropertyLinkT(const std::vector& objs, const std::vector& subNames); /*! Get the property as Python command. */ std::string getPropertyPython() const;