From f2f51ceef201dbaad7a4652b137bbc60c2ef34f6 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 10 Sep 2014 17:53:10 +0200 Subject: [PATCH] [IO] Remove unused ProjectData from XmlNumReader. Also remove superfluous and wrong comments. --- FileIO/XmlIO/Qt/XmlNumInterface.cpp | 4 ++-- FileIO/XmlIO/Qt/XmlNumInterface.h | 12 +----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/FileIO/XmlIO/Qt/XmlNumInterface.cpp b/FileIO/XmlIO/Qt/XmlNumInterface.cpp index a2c37de3cff..c675c25fa1e 100644 --- a/FileIO/XmlIO/Qt/XmlNumInterface.cpp +++ b/FileIO/XmlIO/Qt/XmlNumInterface.cpp @@ -24,8 +24,8 @@ namespace FileIO { -XmlNumInterface::XmlNumInterface(ProjectData &project) : - XMLInterface(), XMLQtInterface(BaseLib::FileFinder().getPath("OpenGeoSysNUM.xsd")), _project(project) +XmlNumInterface::XmlNumInterface() : + XMLInterface(), XMLQtInterface(BaseLib::FileFinder().getPath("OpenGeoSysNUM.xsd")) { } diff --git a/FileIO/XmlIO/Qt/XmlNumInterface.h b/FileIO/XmlIO/Qt/XmlNumInterface.h index 699ab0de150..34853b5ff14 100644 --- a/FileIO/XmlIO/Qt/XmlNumInterface.h +++ b/FileIO/XmlIO/Qt/XmlNumInterface.h @@ -21,21 +21,13 @@ namespace FileIO { -/** - * \brief Reads and writes GeoObjects to and from XML files. - */ class XmlNumInterface : public XMLInterface, public XMLQtInterface { public: - /** - * Constructor - * \param project Project data. - */ - XmlNumInterface(ProjectData &project); + XmlNumInterface(); virtual ~XmlNumInterface() {} - /// Reads an xml-file containing geometric object definitions into the GEOObjects used in the contructor int readFile(QString const& fileName); bool readFile(std::string const& fname) { return readFile(QString(fname.c_str())) != 0; } @@ -46,8 +38,6 @@ protected: void readConvergenceCriteria(QDomElement const& convergence_root); bool write(); -private: - ProjectData &_project; }; } -- GitLab