../../../source/gui/CGUI.cpp:79:43: warning: loop variable 'p' has type 'const std::pair<CStr8, IGUIObject *> &' but is initialized with type 'std::pair<const CStr8, IGUIObject *>' resulting in a copy [-Wrange-loop-construct]
for (const std::pair<CStr, IGUIObject*>& p : m_pAllObjects)
^
../../../source/gui/CGUI.cpp:79:7: note: use non-reference type 'std::pair<CStr8, IGUIObject *>' to keep the copy or type 'const std::pair<const CStr8, IGUIObject *> &' to prevent copying
for (const std::pair<CStr, IGUIObject*>& p : m_pAllObjects)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/gui/CGUI.cpp:82:49: warning: loop variable 'p' has type 'const std::pair<CStr8, const CGUISprite *> &' but is initialized with type 'std::pair<const CStr8, const CGUISprite *>' resulting in a copy [-Wrange-loop-construct]
for (const std::pair<CStr, const CGUISprite*>& p : m_Sprites)
^
../../../source/gui/CGUI.cpp:82:7: note: use non-reference type 'std::pair<CStr8, const CGUISprite *>' to keep the copy or type 'const std::pair<const CStr8, const CGUISprite *> &' to prevent copying
for (const std::pair<CStr, const CGUISprite*>& p : m_Sprites)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/ps/Hotkey.cpp:60:47: warning: loop variable 'configPair' has type 'const std::pair<CStr8, CConfigValueSet> &' (aka 'const pair<CStr8, vector<CStr8> > &') but is initialized with type 'std::pair<const CStr8, std::vector<CStr8, std::allocator<CStr8> > >' resulting in a copy [-Wrange-loop-construct]
for (const std::pair<CStr, CConfigValueSet>& configPair : g_ConfigDB.GetValuesWithPrefix(CFG_COMMAND, "hotkey."))
^
../../../source/ps/Hotkey.cpp:60:7: note: use non-reference type 'std::pair<CStr8, CConfigValueSet>' (aka 'pair<CStr8, vector<CStr8> >') to keep the copy or type 'const std::pair<const CStr8, std::vector<CStr8, std::allocator<CStr8> > > &' to prevent copying
for (const std::pair<CStr, CConfigValueSet>& configPair : g_ConfigDB.GetValuesWithPrefix(CFG_COMMAND, "hotkey."))
../../../source/ps/Hotkey.cpp:117:41: warning: loop variable 'p' has type 'const std::pair<int, KeyMapping> &' (aka 'const pair<int, vector<SHotkeyMapping> > &') but is initialized with type 'std::pair<const int, std::vector<SHotkeyMapping, std::allocator<SHotkeyMapping> > >' resulting in a copy [-Wrange-loop-construct]
for (const std::pair<int, KeyMapping>& p : g_HotkeyMap)
^
../../../source/ps/Hotkey.cpp:117:7: note: use non-reference type 'std::pair<int, KeyMapping>' (aka 'pair<int, vector<SHotkeyMapping> >') to keep the copy or type 'const std::pair<const int, std::vector<SHotkeyMapping, std::allocator<SHotkeyMapping> > > &' to prevent copying
for (const std::pair<int, KeyMapping>& p : g_HotkeyMap)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/gui/ObjectBases/IGUIObject.cpp:74:44: warning: loop variable 'p' has type 'const std::pair<CStr8, IGUISetting *> &' but is initialized with type 'std::pair<const CStr8, IGUISetting *>' resulting in a copy [-Wrange-loop-construct]
for (const std::pair<CStr, IGUISetting*>& p : m_Settings)
^
../../../source/gui/ObjectBases/IGUIObject.cpp:74:7: note: use non-reference type 'std::pair<CStr8, IGUISetting *>' to keep the copy or type 'const std::pair<const CStr8, IGUISetting *> &' to prevent copying
for (const std::pair<CStr, IGUISetting*>& p : m_Settings)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/gui/ObjectBases/IGUIObject.cpp:277:37: warning: loop variable 'p' has type 'const std::pair<CStr8, CStrW> &' but is initialized with type 'const std::pair<const CStr8, CStrW>' resulting in a copy [-Wrange-loop-construct]
for (const std::pair<CStr, CStrW>& p : m_pGUI.GetStyle(StyleName).m_SettingsDefaults)
^
../../../source/gui/ObjectBases/IGUIObject.cpp:277:7: note: use non-reference type 'std::pair<CStr8, CStrW>' to keep the copy or type 'const std::pair<const CStr8, CStrW> &' to prevent copying
for (const std::pair<CStr, CStrW>& p : m_pGUI.GetStyle(StyleName).m_SettingsDefaults)