mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 14:24:35 +01:00
Added const to Document/Array::isType
This commit is contained in:
parent
ca1a79f6b1
commit
623dfe7606
@ -62,7 +62,7 @@ public:
|
||||
/// An empty element will be returned when the element is not found.
|
||||
|
||||
template<typename T>
|
||||
bool isType(int pos)
|
||||
bool isType(int pos) const
|
||||
/// Returns true when the type of the element equals the TypeId of ElementTrait
|
||||
{
|
||||
return Document::isType<T>(Poco::NumberFormatter::format(pos));
|
||||
|
@ -154,7 +154,7 @@ public:
|
||||
/// An empty element will be returned when the element is not found.
|
||||
|
||||
template<typename T>
|
||||
bool isType(const std::string& name)
|
||||
bool isType(const std::string& name) const
|
||||
/// Returns true when the type of the element equals the TypeId of ElementTrait
|
||||
{
|
||||
Element::Ptr element = get(name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user