fixed GH #63: Net::NameValueCollection::size() returns int

This commit is contained in:
Guenter Obiltschnig 2014-11-19 23:26:04 +01:00
parent b2a8c50bf1
commit 340594b2ae
2 changed files with 4 additions and 3 deletions

View File

@ -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.

View File

@ -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();
} }