mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user