diff options
author | Sebastien Gonzalve <oznog@zarb.org> | 2014-02-20 22:28:03 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-09-11 14:25:02 +0200 |
commit | d9526499d6ab53b7d13d1434f748f6f2161c2e0a (patch) | |
tree | 8d2e2db275800821d4bf8873fc16b686bca60b2d /parameter/MappingData.cpp | |
parent | ffbf43b383bb8693741430b02c24dbc9b127f7f7 (diff) | |
download | external_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/MappingData.cpp')
-rw-r--r-- | parameter/MappingData.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/parameter/MappingData.cpp b/parameter/MappingData.cpp index 72aa89c..b7a1a2a 100644 --- a/parameter/MappingData.cpp +++ b/parameter/MappingData.cpp @@ -40,19 +40,19 @@ bool CMappingData::fromXml(const CXmlElement& xmlElement, CXmlSerializingContext { assert(xmlElement.hasAttribute("Mapping")); - string strMapping = xmlElement.getAttributeString("Mapping"); + std::string strMapping = xmlElement.getAttributeString("Mapping"); Tokenizer mappingTok(strMapping, ","); - string strMappingElement; + std::string strMappingElement; while (!(strMappingElement = mappingTok.next()).empty()) { - string::size_type iFistDelimiterOccurrence = strMappingElement.find_first_of(':'); + std::string::size_type iFistDelimiterOccurrence = strMappingElement.find_first_of(':'); - string strKey, strValue; + std::string strKey, strValue; - if (iFistDelimiterOccurrence == string::npos) { + if (iFistDelimiterOccurrence == std::string::npos) { // There is no delimiter in the mapping field, // it means that no value has been provided @@ -79,7 +79,7 @@ bool CMappingData::fromXml(const CXmlElement& xmlElement, CXmlSerializingContext return true; } -bool CMappingData::getValue(const string& strkey, const string*& pStrValue) const +bool CMappingData::getValue(const std::string& strkey, const std::string*& pStrValue) const { KeyToValueMapConstIterator it = _keyToValueMap.find(strkey); @@ -92,16 +92,16 @@ bool CMappingData::getValue(const string& strkey, const string*& pStrValue) cons return false; } -string CMappingData::asString() const +std::string CMappingData::asString() const { - string strValue; + std::string strValue; CUtility::asString(_keyToValueMap, strValue, ", ", ":"); return strValue; } -bool CMappingData::addValue(const string& strkey, const string& strValue) +bool CMappingData::addValue(const std::string& strkey, const std::string& strValue) { if (_keyToValueMap.find(strkey) != _keyToValueMap.end()) { |