diff options
author | David Wagner <david.wagner@intel.com> | 2015-02-04 14:47:14 +0100 |
---|---|---|
committer | Philippe Afonso <philippex.afonso@intel.com> | 2015-02-18 11:33:09 +0100 |
commit | 36423a49fdde5755faea5914e554b64363034b0c (patch) | |
tree | eea85c07e7b9e6c1deeaf911630bb0c7b3f929b5 | |
parent | 3eeafab805b5d82b168361f05b9ec372d41a0614 (diff) | |
download | external_parameter-framework-36423a49fdde5755faea5914e554b64363034b0c.zip external_parameter-framework-36423a49fdde5755faea5914e554b64363034b0c.tar.gz external_parameter-framework-36423a49fdde5755faea5914e554b64363034b0c.tar.bz2 |
Fix SystemClass duplicate 'Name' attribute in xml export
When refactoring Element::toXml, we forgot to make the necessary adaptation in
SystemClass::toXml. The latter does not need to set the Name attribute anymore
because this is taken care of by the base toXml method.
SystemClass::toXml now only calls the base and can therefore be completely
removed.
Change-Id: Ibd12feaac2c101dcc22e8716e332cb02f03ba99a
Tracked-On: https://jira01.devtools.intel.com/browse/IMINAN-19676
Signed-off-by: David Wagner <david.wagner@intel.com>
-rw-r--r-- | parameter/SystemClass.cpp | 9 | ||||
-rw-r--r-- | parameter/SystemClass.h | 3 |
2 files changed, 0 insertions, 12 deletions
diff --git a/parameter/SystemClass.cpp b/parameter/SystemClass.cpp index 6169223..334772a 100644 --- a/parameter/SystemClass.cpp +++ b/parameter/SystemClass.cpp @@ -314,12 +314,3 @@ bool CSystemClass::init(string& strError) { return base::init(strError); } - -// From IXmlSource -void CSystemClass::toXml(CXmlElement& xmlElement, CXmlSerializingContext& serializingContext) const -{ - // Set the name of system class - xmlElement.setNameAttribute(getName()); - - base::toXml(xmlElement, serializingContext); -} diff --git a/parameter/SystemClass.h b/parameter/SystemClass.h index b5bce45..a224609 100644 --- a/parameter/SystemClass.h +++ b/parameter/SystemClass.h @@ -75,9 +75,6 @@ public: virtual bool init(std::string& strError); virtual std::string getKind() const; - // From IXmlSource - virtual void toXml(CXmlElement& xmlElement, CXmlSerializingContext& serializingContext) const; - private: CSystemClass(const CSystemClass&); CSystemClass& operator=(const CSystemClass&); |