writerfilter: drop global 'using' from XPathLogger
Change-Id: I8686a0aa3786284ab946d3c58b458ad211eb347d
This commit is contained in:
@@ -29,19 +29,16 @@
|
||||
|
||||
namespace writerfilter
|
||||
{
|
||||
using ::std::stack;
|
||||
using ::std::string;
|
||||
using ::std::vector;
|
||||
|
||||
class XPathLogger
|
||||
{
|
||||
typedef boost::unordered_map<string, unsigned int> TokenMap_t;
|
||||
typedef boost::unordered_map<std::string, unsigned int> TokenMap_t;
|
||||
typedef boost::shared_ptr<TokenMap_t> TokenMapPointer_t;
|
||||
|
||||
TokenMapPointer_t mp_tokenMap;
|
||||
stack<TokenMapPointer_t> m_tokenMapStack;
|
||||
vector<string> m_path;
|
||||
string m_currentPath;
|
||||
std::stack<TokenMapPointer_t> m_tokenMapStack;
|
||||
std::vector<std::string> m_path;
|
||||
std::string m_currentPath;
|
||||
|
||||
void updateCurrentPath();
|
||||
|
||||
@@ -49,8 +46,8 @@ public:
|
||||
explicit XPathLogger();
|
||||
virtual ~XPathLogger();
|
||||
|
||||
string getXPath() const;
|
||||
void startElement(string _token);
|
||||
std::string getXPath() const;
|
||||
void startElement(std::string _token);
|
||||
void endElement();
|
||||
};
|
||||
}
|
||||
|
@@ -33,7 +33,7 @@ XPathLogger::~XPathLogger()
|
||||
{
|
||||
}
|
||||
|
||||
string XPathLogger::getXPath() const
|
||||
std::string XPathLogger::getXPath() const
|
||||
{
|
||||
return m_currentPath;
|
||||
}
|
||||
@@ -42,7 +42,7 @@ void XPathLogger::updateCurrentPath()
|
||||
{
|
||||
m_currentPath = "";
|
||||
|
||||
for (vector<string>::const_iterator aIt = m_path.begin();
|
||||
for (std::vector<std::string>::const_iterator aIt = m_path.begin();
|
||||
aIt != m_path.end();
|
||||
++aIt)
|
||||
{
|
||||
@@ -53,7 +53,7 @@ void XPathLogger::updateCurrentPath()
|
||||
}
|
||||
}
|
||||
|
||||
void XPathLogger::startElement(string _token)
|
||||
void XPathLogger::startElement(std::string _token)
|
||||
{
|
||||
TokenMap_t::const_iterator aIt = mp_tokenMap->find(_token);
|
||||
|
||||
|
Reference in New Issue
Block a user