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.
diff --git a/parameter/RuleParser.h b/parameter/RuleParser.h
index 7beceec..f701d76 100644
--- a/parameter/RuleParser.h
+++ b/parameter/RuleParser.h
@@ -32,8 +32,6 @@
#include <string>
#include <stdint.h>
-using namespace std;
-
class CCompoundRule;
class CSelectionCriteriaDefinition;
@@ -51,20 +49,20 @@
ENbStatuses
};
- CRuleParser(const string& strApplicationRule, const CSelectionCriteriaDefinition* pSelectionCriteriaDefinition);
+ CRuleParser(const std::string& strApplicationRule, const CSelectionCriteriaDefinition* pSelectionCriteriaDefinition);
~CRuleParser();
// Parse
- bool parse(CCompoundRule* pParentRule, string& strError);
+ bool parse(CCompoundRule* pParentRule, std::string& strError);
// Iterate
- bool iterate(string& strError);
+ bool iterate(std::string& strError);
// Next word
- bool next(string& strNext, string& strError);
+ bool next(std::string& strNext, std::string& strError);
// Rule type
- const string& getType() const;
+ const std::string& getType() const;
// Criteria defintion
const CSelectionCriteriaDefinition* getSelectionCriteriaDefinition() const;
@@ -77,7 +75,7 @@
CRuleParser& operator=(const CRuleParser&);
// Rule definition
- string _strApplicationRule;
+ std::string _strApplicationRule;
// Criteria defintion
const CSelectionCriteriaDefinition* _pSelectionCriteriaDefinition;
// Iterator
@@ -85,7 +83,7 @@
// Deepness
uint32_t _uiCurrentDeepness;
// Current Type
- string _strRuleType;
+ std::string _strRuleType;
// Status
Status _eStatus;
// Root rule