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. --- xmlserializer/XmlMemoryDocSource.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'xmlserializer/XmlMemoryDocSource.h') diff --git a/xmlserializer/XmlMemoryDocSource.h b/xmlserializer/XmlMemoryDocSource.h index 072cb06..3266782 100644 --- a/xmlserializer/XmlMemoryDocSource.h +++ b/xmlserializer/XmlMemoryDocSource.h @@ -33,8 +33,6 @@ #include "XmlDocSource.h" #include "XmlSource.h" -using std::string; - /** * Source class that uses parameter-framework's structures to create an xml document */ @@ -52,9 +50,9 @@ public: * @param[in] strVersion a string containing the version number * @param[in] bValidateWithSchema a boolean that toggles schema validation */ - CXmlMemoryDocSource(const IXmlSource* pXmlSource, const string& strRootElementType, - const string& strXmlSchemaFile, const string& strProduct, - const string& strVersion, + CXmlMemoryDocSource(const IXmlSource* pXmlSource, const std::string& strRootElementType, + const std::string& strXmlSchemaFile, const std::string& strProduct, + const std::string& strVersion, bool bValidateWithSchema); /** @@ -65,7 +63,7 @@ public: * @param[in] strRootElementType a string containing the root element type * @param[in] bValidateWithSchema a boolean that toggles schema validation */ - CXmlMemoryDocSource(const IXmlSource* pXmlSource, const string& strRootElementType, bool bValidateWithSchema); + CXmlMemoryDocSource(const IXmlSource* pXmlSource, const std::string& strRootElementType, bool bValidateWithSchema); /** * Implementation of CXmlDocSource::populate() method. @@ -91,7 +89,7 @@ private: /** * Schema file */ - string _strXmlSchemaFile; + std::string _strXmlSchemaFile; /** * Boolean used to specify if a header should be added in the Xml Doc @@ -99,6 +97,6 @@ private: bool _bWithHeader; // Product and version info - string _strProduct; - string _strVersion; + std::string _strProduct; + std::string _strVersion; }; -- cgit v1.1