summaryrefslogtreecommitdiffstats
path: root/parameter/PluginLocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/PluginLocation.cpp')
-rw-r--r--parameter/PluginLocation.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/parameter/PluginLocation.cpp b/parameter/PluginLocation.cpp
index 92f2ce9..1c98ce3 100644
--- a/parameter/PluginLocation.cpp
+++ b/parameter/PluginLocation.cpp
@@ -31,27 +31,25 @@
#define base CKindElement
-CPluginLocation::CPluginLocation(const std::string& strName, const std::string& strKind) : base(strName, strKind)
+CPluginLocation::CPluginLocation(const std::string &strName, const std::string &strKind)
+ : base(strName, strKind)
{
-
}
-const std::string& CPluginLocation::getFolder() const
+const std::string &CPluginLocation::getFolder() const
{
return _strFolder;
}
-const std::list<std::string>& CPluginLocation::getPluginList() const
+const std::list<std::string> &CPluginLocation::getPluginList() const
{
return _pluginList;
}
-bool CPluginLocation::fromXml(const CXmlElement &xmlElement, CXmlSerializingContext &serializingContext)
+bool CPluginLocation::fromXml(const CXmlElement &xmlElement, CXmlSerializingContext & /*ctx*/)
{
- (void) serializingContext;
-
// Retrieve folder
- _strFolder = xmlElement.getAttributeString("Folder");
+ xmlElement.getAttribute("Folder", _strFolder);
// Get Info from children
CXmlElement::CChildIterator childIterator(xmlElement);
@@ -61,7 +59,7 @@ bool CPluginLocation::fromXml(const CXmlElement &xmlElement, CXmlSerializingCont
while (childIterator.next(xmlPluginElement)) {
// Fill Plugin List
- _pluginList.push_back(xmlPluginElement.getAttributeString("Name"));
+ _pluginList.push_back(xmlPluginElement.getNameAttribute());
}
// Don't dig