mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
SF items 1951604 and 1953551
[1951604] POCO refuses to compile with g++ 4.3.0 [1953551] Solaris Sun Studio 12 Apache stdcxx 64 bit Warning: compile with target platforms not done yet!
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -79,7 +80,7 @@ public:
|
||||
/// Creates the HashTable.
|
||||
{
|
||||
_entries = new HashEntryMap*[initialSize];
|
||||
memset(_entries, '\0', sizeof(HashEntryMap*)*initialSize);
|
||||
std::memset(_entries, '\0', sizeof(HashEntryMap*)*initialSize);
|
||||
}
|
||||
|
||||
HashTable(const HashTable& ht):
|
||||
@@ -314,7 +315,7 @@ public:
|
||||
UInt32 oldSize = _maxCapacity;
|
||||
_maxCapacity = newSize;
|
||||
_entries = new HashEntryMap*[_maxCapacity];
|
||||
memset(_entries, '\0', sizeof(HashEntryMap*)*_maxCapacity);
|
||||
std::memset(_entries, '\0', sizeof(HashEntryMap*)*_maxCapacity);
|
||||
|
||||
if (_size == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user