merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8

This commit is contained in:
Günter Obiltschnig
2020-01-09 10:08:09 +01:00
parent 7c177b6f89
commit 1bf40a0cd2
389 changed files with 3029 additions and 4111 deletions

View File

@@ -90,7 +90,7 @@ public:
template <class C>
class PoolableObjectFactory <C, Poco::AutoPtr<C> >
class PoolableObjectFactory <C, Poco::AutoPtr<C>>
{
public:
Poco::AutoPtr<C> createObject()
@@ -118,7 +118,7 @@ public:
template <class C>
class PoolableObjectFactory <C, Poco::SharedPtr<C> >
class PoolableObjectFactory <C, Poco::SharedPtr<C>>
{
public:
Poco::SharedPtr<C> createObject()
@@ -145,7 +145,7 @@ public:
};
template <class C, class P = C*, class F = PoolableObjectFactory<C, P> >
template <class C, class P = C*, class F = PoolableObjectFactory<C, P>>
class ObjectPool
/// An ObjectPool manages a pool of objects of a certain class.
///
@@ -195,9 +195,9 @@ public:
{
try
{
for (typename std::vector<P>::iterator it = _pool.begin(); it != _pool.end(); ++it)
for (auto& p: _pool)
{
_factory.destroyObject(*it);
_factory.destroyObject(p);
}
}
catch (...)