mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 19:13:30 +01:00
fixed GH #63: Net::NameValueCollection::size() returns int
This commit is contained in:
parent
b2a8c50bf1
commit
340594b2ae
@ -23,6 +23,7 @@
|
|||||||
#include "Poco/Net/Net.h"
|
#include "Poco/Net/Net.h"
|
||||||
#include "Poco/String.h"
|
#include "Poco/String.h"
|
||||||
#include "Poco/ListMap.h"
|
#include "Poco/ListMap.h"
|
||||||
|
#include <cstddef>
|
||||||
|
|
||||||
|
|
||||||
namespace Poco {
|
namespace Poco {
|
||||||
@ -97,7 +98,7 @@ public:
|
|||||||
bool empty() const;
|
bool empty() const;
|
||||||
/// Returns true iff the header does not have any content.
|
/// Returns true iff the header does not have any content.
|
||||||
|
|
||||||
int size() const;
|
std::size_t size() const;
|
||||||
/// Returns the number of name-value pairs in the
|
/// Returns the number of name-value pairs in the
|
||||||
/// collection.
|
/// collection.
|
||||||
|
|
||||||
|
@ -134,9 +134,9 @@ bool NameValueCollection::empty() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int NameValueCollection::size() const
|
std::size_t NameValueCollection::size() const
|
||||||
{
|
{
|
||||||
return (int) _map.size();
|
return _map.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user