Revert "GH #1050 Foundation-tests: fix gcc -Wshadow warnings"

This commit is contained in:
Günter Obiltschnig
2016-09-05 08:28:18 +02:00
committed by GitHub
parent 9f6048a8d6
commit f7d3737526
21 changed files with 184 additions and 184 deletions

View File

@@ -168,28 +168,28 @@ class ObjectPool
/// - If the object is not valid, it is destroyed immediately.
{
public:
ObjectPool(std::size_t objectCapacity, std::size_t peakObjectCapacity):
ObjectPool(std::size_t capacity, std::size_t peakCapacity):
/// Creates a new ObjectPool with the given capacity
/// and peak capacity.
///
/// The PoolableObjectFactory must have a public default constructor.
_capacity(objectCapacity),
_peakCapacity(peakObjectCapacity),
_capacity(capacity),
_peakCapacity(peakCapacity),
_size(0)
{
poco_assert (objectCapacity <= peakObjectCapacity);
poco_assert (capacity <= peakCapacity);
}
ObjectPool(const F& factory, std::size_t objectCapacity, std::size_t peakObjectCapacity):
ObjectPool(const F& factory, std::size_t capacity, std::size_t peakCapacity):
/// Creates a new ObjectPool with the given PoolableObjectFactory,
/// capacity and peak capacity. The PoolableObjectFactory must have
/// a public copy constructor.
_factory(factory),
_capacity(objectCapacity),
_peakCapacity(peakObjectCapacity),
_capacity(capacity),
_peakCapacity(peakCapacity),
_size(0)
{
poco_assert (objectCapacity <= peakObjectCapacity);
poco_assert (capacity <= peakCapacity);
}
~ObjectPool()