mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
updated CppParser
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Attributes.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/CppParser/src/Attributes.cpp#1 $
|
||||
// $Id: //poco/1.4/CppParser/src/Attributes.cpp#2 $
|
||||
//
|
||||
// Library: CppParser
|
||||
// Package: Attributes
|
||||
@@ -143,6 +143,14 @@ void Attributes::set(const std::string& name, const std::string& value)
|
||||
}
|
||||
|
||||
|
||||
void Attributes::remove(const std::string& name)
|
||||
{
|
||||
AttrMap::iterator it = _map.find(name);
|
||||
if (it != _map.end())
|
||||
_map.erase(it);
|
||||
}
|
||||
|
||||
|
||||
const std::string& Attributes::operator [] (const std::string& name) const
|
||||
{
|
||||
AttrMap::const_iterator it = _map.find(name);
|
||||
|
||||
Reference in New Issue
Block a user