summaryrefslogtreecommitdiffstats
path: root/parameter/ConfigurableElement.cpp
diff options
context:
space:
mode:
authorSebastien Gonzalve <oznog@zarb.org>2014-02-20 22:28:03 +0100
committerDavid Wagner <david.wagner@intel.com>2014-09-11 14:25:02 +0200
commitd9526499d6ab53b7d13d1434f748f6f2161c2e0a (patch)
tree8d2e2db275800821d4bf8873fc16b686bca60b2d /parameter/ConfigurableElement.cpp
parentffbf43b383bb8693741430b02c24dbc9b127f7f7 (diff)
downloadexternal_parameter-framework-d9526499d6ab53b7d13d1434f748f6f2161c2e0a.zip
external_parameter-framework-d9526499d6ab53b7d13d1434f748f6f2161c2e0a.tar.gz
external_parameter-framework-d9526499d6ab53b7d13d1434f748f6f2161c2e0a.tar.bz2
Remove using std::XXX from headers
This is a bad practice to have using in headers because it pollutes the namespace of any user of that header.
Diffstat (limited to 'parameter/ConfigurableElement.cpp')
-rw-r--r--parameter/ConfigurableElement.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/parameter/ConfigurableElement.cpp b/parameter/ConfigurableElement.cpp
index 2c09c96..c23c7e9 100644
--- a/parameter/ConfigurableElement.cpp
+++ b/parameter/ConfigurableElement.cpp
@@ -38,7 +38,7 @@
#define base CElement
-CConfigurableElement::CConfigurableElement(const string& strName) : base(strName), _uiOffset(0)
+CConfigurableElement::CConfigurableElement(const std::string& strName) : base(strName), _uiOffset(0)
{
}
@@ -133,9 +133,9 @@ CAreaConfiguration* CConfigurableElement::createAreaConfiguration(const CSyncerS
}
// Parameter access
-bool CConfigurableElement::accessValue(CPathNavigator& pathNavigator, string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const
+bool CConfigurableElement::accessValue(CPathNavigator& pathNavigator, std::string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const
{
- string* pStrChildName = pathNavigator.next();
+ std::string* pStrChildName = pathNavigator.next();
if (!pStrChildName) {
@@ -157,7 +157,7 @@ bool CConfigurableElement::accessValue(CPathNavigator& pathNavigator, string& st
}
void CConfigurableElement::getListOfElementsWithMapping(
- list<const CConfigurableElement*>& configurableElementPath) const
+ std::list<const CConfigurableElement*>& configurableElementPath) const
{
// Check parent
const CElement* pParent = getParent();
@@ -186,7 +186,7 @@ void CConfigurableElement::setDefaultValues(CParameterAccessContext& parameterAc
}
// Element properties
-void CConfigurableElement::showProperties(string& strResult) const
+void CConfigurableElement::showProperties(std::string& strResult) const
{
base::showProperties(strResult);
@@ -303,7 +303,7 @@ bool CConfigurableElement::belongsTo(const CConfigurableDomain* pConfigurableDom
}
// Belonging domains
-void CConfigurableElement::getBelongingDomains(list<const CConfigurableDomain*>& configurableDomainList) const
+void CConfigurableElement::getBelongingDomains(std::list<const CConfigurableDomain*>& configurableDomainList) const
{
configurableDomainList.insert(configurableDomainList.end(), _configurableDomainList.begin(), _configurableDomainList.end());
@@ -316,10 +316,10 @@ void CConfigurableElement::getBelongingDomains(list<const CConfigurableDomain*>&
}
}
-void CConfigurableElement::listBelongingDomains(string& strResult, bool bVertical) const
+void CConfigurableElement::listBelongingDomains(std::string& strResult, bool bVertical) const
{
// Get belonging domain list
- list<const CConfigurableDomain*> configurableDomainList;
+ std::list<const CConfigurableDomain*> configurableDomainList;
getBelongingDomains(configurableDomainList);
@@ -328,19 +328,19 @@ void CConfigurableElement::listBelongingDomains(string& strResult, bool bVertica
}
// Elements with no domains
-void CConfigurableElement::listRogueElements(string& strResult) const
+void CConfigurableElement::listRogueElements(std::string& strResult) const
{
strResult = "\n";
// Get rogue element aggregate list (no associated domain)
- list<const CConfigurableElement*> rogueElementList;
+ std::list<const CConfigurableElement*> rogueElementList;
CConfigurableElementAggregator configurableElementAggregator(rogueElementList, &CConfigurableElement::hasNoDomainAssociated);
configurableElementAggregator.aggegate(this);
- // Build list as string
- list<const CConfigurableElement*>::const_iterator it;
+ // Build list as std::string
+ std::list<const CConfigurableElement*>::const_iterator it;
for (it = rogueElementList.begin(); it != rogueElementList.end(); ++it) {
@@ -357,7 +357,7 @@ bool CConfigurableElement::isRogue() const
}
// Footprint as string
-string CConfigurableElement::getFootprintAsString() const
+std::string CConfigurableElement::getFootprintAsString() const
{
// Get size as string
return toString(getFootPrint()) + " byte(s)";
@@ -395,7 +395,7 @@ bool CConfigurableElement::hasNoValidDomainAssociated() const
}
// Owning domains
-void CConfigurableElement::listAssociatedDomains(string& strResult, bool bVertical) const
+void CConfigurableElement::listAssociatedDomains(std::string& strResult, bool bVertical) const
{
// Fill list
listDomains(_configurableDomainList, strResult, bVertical);
@@ -404,14 +404,14 @@ void CConfigurableElement::listAssociatedDomains(string& strResult, bool bVertic
uint32_t CConfigurableElement::getBelongingDomainCount() const
{
// Get belonging domain list
- list<const CConfigurableDomain*> configurableDomainList;
+ std::list<const CConfigurableDomain*> configurableDomainList;
getBelongingDomains(configurableDomainList);
return configurableDomainList.size();
}
-void CConfigurableElement::listDomains(const list<const CConfigurableDomain*>& configurableDomainList, string& strResult, bool bVertical) const
+void CConfigurableElement::listDomains(const std::list<const CConfigurableDomain*>& configurableDomainList, std::string& strResult, bool bVertical) const
{
if (bVertical && configurableDomainList.empty()) {