summaryrefslogtreecommitdiffstats
path: root/parameter/ElementLibrary.cpp
diff options
context:
space:
mode:
authorFrançois Gaffie <francois.gaffie@intel.com>2016-02-17 10:58:44 +0100
committerEric Laurent <elaurent@google.com>2016-03-04 17:42:09 -0800
commit9368eea42a1afb01dd44110582f997115b50e742 (patch)
tree5efc2015ec5d52fc32453ad5a1a82a3f4a6b4919 /parameter/ElementLibrary.cpp
parent0efdadfc1eacc7271c8f854a8a610fdc2cc66102 (diff)
downloadplatform_external_parameter-framework-9368eea42a1afb01dd44110582f997115b50e742.tar.gz
platform_external_parameter-framework-9368eea42a1afb01dd44110582f997115b50e742.tar.bz2
platform_external_parameter-framework-9368eea42a1afb01dd44110582f997115b50e742.zip
parameter-framework: Drop of github upstream version v3.2.4
Main features are: -Networking code may now be opted-out (for android build: no socket opened for user build) -Get rid of python prebuild for XML generation Bug: 22887211 Change-Id: Ieee49b439f694f14ce48c23127d34622691397ef Signed-off-by: François Gaffie <francois.gaffie@intel.com> Signed-off-by: David Wagner <david.wagner@intel.com>
Diffstat (limited to 'parameter/ElementLibrary.cpp')
-rw-r--r--parameter/ElementLibrary.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/parameter/ElementLibrary.cpp b/parameter/ElementLibrary.cpp
index 7709f0c..bde9b91 100644
--- a/parameter/ElementLibrary.cpp
+++ b/parameter/ElementLibrary.cpp
@@ -30,11 +30,6 @@
#include "ElementLibrary.h"
#include "ElementBuilder.h"
-
-CElementLibrary::CElementLibrary()
-{
-}
-
CElementLibrary::~CElementLibrary()
{
clean();
@@ -51,7 +46,7 @@ void CElementLibrary::clean()
_elementBuilderMap.clear();
}
-CElement* CElementLibrary::createElement(const CXmlElement& xmlElement) const
+CElement *CElementLibrary::createElement(const CXmlElement &xmlElement) const
{
ElementBuilderMapConstIterator it = _elementBuilderMap.find(getBuilderType(xmlElement));
@@ -62,12 +57,13 @@ CElement* CElementLibrary::createElement(const CXmlElement& xmlElement) const
return NULL;
}
-void CElementLibrary::addElementBuilder(const std::string& type, const CElementBuilder *pElementBuilder)
+void CElementLibrary::addElementBuilder(const std::string &type,
+ const CElementBuilder *pElementBuilder)
{
_elementBuilderMap[type] = pElementBuilder;
}
-std::string CElementLibrary::getBuilderType(const CXmlElement& xmlElement) const
+std::string CElementLibrary::getBuilderType(const CXmlElement &xmlElement) const
{
// Defaulting to xml element name
return xmlElement.getType();