using const methods
This commit is contained in:
parent
fe372f64e4
commit
b572c23561
@ -292,7 +292,7 @@ namespace
|
||||
m_skinMap.clear();
|
||||
|
||||
// first we try all factories, that have been added manually
|
||||
for ( auto it = m_factoryMap.begin(); it != m_factoryMap.end(); ++it )
|
||||
for ( auto it = m_factoryMap.constBegin(); it != m_factoryMap.constEnd(); ++it )
|
||||
{
|
||||
const auto& data = it.value();
|
||||
|
||||
@ -301,7 +301,7 @@ namespace
|
||||
}
|
||||
|
||||
// all factories from plugins are following
|
||||
for ( auto it = m_factoryMap.begin(); it != m_factoryMap.end(); ++it )
|
||||
for ( auto it = m_factoryMap.constBegin(); it != m_factoryMap.constEnd(); ++it )
|
||||
{
|
||||
const auto& data = it.value();
|
||||
if ( data.loader )
|
||||
|
@ -28,7 +28,8 @@ QskGraphicProviderMap::QskGraphicProviderMap()
|
||||
|
||||
QskGraphicProviderMap::~QskGraphicProviderMap()
|
||||
{
|
||||
for ( auto it = m_data->hashTab.begin(); it != m_data->hashTab.end(); ++it )
|
||||
const auto& hashTab = m_data->hashTab;
|
||||
for ( auto it = hashTab.constBegin(); it != hashTab.constEnd(); ++it )
|
||||
delete it.value();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user