From d9526499d6ab53b7d13d1434f748f6f2161c2e0a Mon Sep 17 00:00:00 2001 From: Sebastien Gonzalve Date: Thu, 20 Feb 2014 22:28:03 +0100 Subject: 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. --- parameter/Element.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'parameter/Element.cpp') diff --git a/parameter/Element.cpp b/parameter/Element.cpp index 6d1d418..2c8393d 100755 --- a/parameter/Element.cpp +++ b/parameter/Element.cpp @@ -37,6 +37,8 @@ #include #include +using std::string; + CElement::CElement(const string& strName) : _strName(strName), _pParent(NULL) { } @@ -84,10 +86,10 @@ void CElement::log_warning(const string& strMessage, ...) const } // Log each element of the string list -void CElement::log_table(bool bIsWarning, const list lstrMessage) const +void CElement::log_table(bool bIsWarning, const std::list lstrMessage) const { - list::const_iterator iterator(lstrMessage.begin()); - list::const_iterator end(lstrMessage.end()); + std::list::const_iterator iterator(lstrMessage.begin()); + std::list::const_iterator end(lstrMessage.end()); while (iterator != end) { // Log current list element @@ -203,7 +205,7 @@ void CElement::showProperties(string& strResult) const // Conversion utilities string CElement::toString(uint32_t uiValue) { - ostringstream ostr; + std::ostringstream ostr; ostr << uiValue; @@ -212,7 +214,7 @@ string CElement::toString(uint32_t uiValue) string CElement::toString(uint64_t uiValue) { - ostringstream ostr; + std::ostringstream ostr; ostr << uiValue; @@ -221,7 +223,7 @@ string CElement::toString(uint64_t uiValue) string CElement::toString(int32_t iValue) { - ostringstream ostr; + std::ostringstream ostr; ostr << iValue; @@ -230,7 +232,7 @@ string CElement::toString(int32_t iValue) string CElement::toString(double dValue) { - ostringstream ostr; + std::ostringstream ostr; ostr << dValue; -- cgit v1.1