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

@@ -132,10 +132,10 @@ public:
virtual ~ClassLoader()
/// Destroys the ClassLoader.
{
for (typename LibraryMap::const_iterator it = _map.begin(); it != _map.end(); ++it)
for (auto& p: _map)
{
delete it->second.pLibrary;
delete it->second.pManifest;
delete p.second.pLibrary;
delete p.second.pManifest;
}
}
@@ -247,9 +247,9 @@ public:
{
FastMutex::ScopedLock lock(_mutex);
for (typename LibraryMap::const_iterator it = _map.begin(); it != _map.end(); ++it)
for (const auto& p: _map)
{
const Manif* pManif = it->second.pManifest;
const Manif* pManif = p.second.pManifest;
typename Manif::Iterator itm = pManif->find(className);
if (itm != pManif->end())
return *itm;