@@ -179,7 +179,7 @@ SVS* CResourceManager::_CreateVS(LPCSTR _name)
179179 {
180180 SVS* _vs = new SVS ();
181181 _vs->dwFlags |= xr_resource_flagged::RF_REGISTERED;
182- m_vs.insert (mk_pair (_vs->set_name (name), _vs));
182+ m_vs.insert (std::make_pair (_vs->set_name (name), _vs));
183183 if (0 == stricmp (_name, " null" ))
184184 {
185185 _vs->vs = NULL ;
@@ -265,7 +265,7 @@ SPS* CResourceManager::_CreatePS(LPCSTR name)
265265 {
266266 SPS* _ps = new SPS ();
267267 _ps->dwFlags |= xr_resource_flagged::RF_REGISTERED;
268- m_ps.insert (mk_pair (_ps->set_name (name), _ps));
268+ m_ps.insert (std::make_pair (_ps->set_name (name), _ps));
269269 if (0 == stricmp (name, " null" ))
270270 {
271271 _ps->ps = NULL ;
@@ -381,7 +381,7 @@ CRT* CResourceManager::_CreateRT(LPCSTR Name, u32 w, u32 h, D3DFORMAT f, u32 Sam
381381 {
382382 CRT* RT = new CRT ();
383383 RT->dwFlags |= xr_resource_flagged::RF_REGISTERED;
384- m_rtargets.insert (mk_pair (RT->set_name (Name), RT));
384+ m_rtargets.insert (std::make_pair (RT->set_name (Name), RT));
385385 if (RDEVICE.b_is_Ready )
386386 RT->create (Name, w, h, f);
387387 return RT;
@@ -516,7 +516,7 @@ CTexture* CResourceManager::_CreateTexture(LPCSTR _Name)
516516 {
517517 CTexture* T = new CTexture ();
518518 T->dwFlags |= xr_resource_flagged::RF_REGISTERED;
519- m_textures.insert (mk_pair (T->set_name (Name), T));
519+ m_textures.insert (std::make_pair (T->set_name (Name), T));
520520 T->Preload ();
521521 if (RDEVICE.b_is_Ready && !bDeferredLoad)
522522 T->Load ();
@@ -570,7 +570,7 @@ CMatrix* CResourceManager::_CreateMatrix(LPCSTR Name)
570570 CMatrix* M = new CMatrix ();
571571 M->dwFlags |= xr_resource_flagged::RF_REGISTERED;
572572 M->dwReference = 1 ;
573- m_matrices.insert (mk_pair (M->set_name (Name), M));
573+ m_matrices.insert (std::make_pair (M->set_name (Name), M));
574574 return M;
575575 }
576576}
@@ -608,7 +608,7 @@ CConstant* CResourceManager::_CreateConstant(LPCSTR Name)
608608 CConstant* C = new CConstant ();
609609 C->dwFlags |= xr_resource_flagged::RF_REGISTERED;
610610 C->dwReference = 1 ;
611- m_constants.insert (mk_pair (C->set_name (Name), C));
611+ m_constants.insert (std::make_pair (C->set_name (Name), C));
612612 return C;
613613 }
614614}
0 commit comments