@@ -243,14 +243,14 @@ void CResourceManager::_DeleteVS(const SVS* vs)
243243{
244244 if (0 == (vs->dwFlags & xr_resource_flagged::RF_REGISTERED))
245245 return ;
246- LPSTR N = LPSTR (vs->cName . c_str () );
246+ LPSTR N = LPSTR (* vs->cName );
247247 map_VS::iterator I = m_vs.find (N);
248248 if (I != m_vs.end ())
249249 {
250250 m_vs.erase (I);
251251 return ;
252252 }
253- Msg (" ! ERROR: Failed to find compiled vertex-shader '%s'" , vs->cName . c_str () );
253+ Msg (" ! ERROR: Failed to find compiled vertex-shader '%s'" , * vs->cName );
254254}
255255
256256#ifndef _EDITOR
@@ -337,14 +337,14 @@ void CResourceManager::_DeletePS(const SPS* ps)
337337{
338338 if (0 == (ps->dwFlags & xr_resource_flagged::RF_REGISTERED))
339339 return ;
340- LPSTR N = LPSTR (ps->cName . c_str () );
340+ LPSTR N = LPSTR (* ps->cName );
341341 map_PS::iterator I = m_ps.find (N);
342342 if (I != m_ps.end ())
343343 {
344344 m_ps.erase (I);
345345 return ;
346346 }
347- Msg (" ! ERROR: Failed to find compiled pixel-shader '%s'" , ps->cName . c_str () );
347+ Msg (" ! ERROR: Failed to find compiled pixel-shader '%s'" , * ps->cName );
348348}
349349
350350R_constant_table* CResourceManager::_CreateConstantTable (R_constant_table& C)
@@ -391,14 +391,14 @@ void CResourceManager::_DeleteRT(const CRT* RT)
391391{
392392 if (0 == (RT->dwFlags & xr_resource_flagged::RF_REGISTERED))
393393 return ;
394- LPSTR N = LPSTR (RT->cName . c_str () );
394+ LPSTR N = LPSTR (* RT->cName );
395395 map_RT::iterator I = m_rtargets.find (N);
396396 if (I != m_rtargets.end ())
397397 {
398398 m_rtargets.erase (I);
399399 return ;
400400 }
401- Msg (" ! ERROR: Failed to find render-target '%s'" , RT->cName . c_str () );
401+ Msg (" ! ERROR: Failed to find render-target '%s'" , * RT->cName );
402402}
403403
404404// DX10 cut
@@ -529,14 +529,14 @@ void CResourceManager::_DeleteTexture(const CTexture* T)
529529
530530 if (0 == (T->dwFlags & xr_resource_flagged::RF_REGISTERED))
531531 return ;
532- LPSTR N = LPSTR (T->cName . c_str () );
532+ LPSTR N = LPSTR (* T->cName );
533533 map_Texture::iterator I = m_textures.find (N);
534534 if (I != m_textures.end ())
535535 {
536536 m_textures.erase (I);
537537 return ;
538538 }
539- Msg (" ! ERROR: Failed to find texture surface '%s'" , T->cName . c_str () );
539+ Msg (" ! ERROR: Failed to find texture surface '%s'" , * T->cName );
540540}
541541
542542#ifdef DEBUG
@@ -549,7 +549,7 @@ void CResourceManager::DBG_VerifyTextures()
549549 R_ASSERT (I->first );
550550 R_ASSERT (I->second );
551551 R_ASSERT (I->second ->cName );
552- R_ASSERT (0 == xr_strcmp (I->first , I->second ->cName . c_str () ));
552+ R_ASSERT (0 == xr_strcmp (I->first , * I->second ->cName ));
553553 }
554554}
555555#endif
@@ -578,14 +578,14 @@ void CResourceManager::_DeleteMatrix(const CMatrix* M)
578578{
579579 if (0 == (M->dwFlags & xr_resource_flagged::RF_REGISTERED))
580580 return ;
581- LPSTR N = LPSTR (M->cName . c_str () );
581+ LPSTR N = LPSTR (* M->cName );
582582 map_Matrix::iterator I = m_matrices.find (N);
583583 if (I != m_matrices.end ())
584584 {
585585 m_matrices.erase (I);
586586 return ;
587587 }
588- Msg (" ! ERROR: Failed to find xform-def '%s'" , M->cName . c_str () );
588+ Msg (" ! ERROR: Failed to find xform-def '%s'" , * M->cName );
589589}
590590void CResourceManager::ED_UpdateMatrix (LPCSTR Name, CMatrix* data)
591591{
@@ -616,14 +616,14 @@ void CResourceManager::_DeleteConstant(const CConstant* C)
616616{
617617 if (0 == (C->dwFlags & xr_resource_flagged::RF_REGISTERED))
618618 return ;
619- LPSTR N = LPSTR (C->cName . c_str () );
619+ LPSTR N = LPSTR (* C->cName );
620620 map_Constant::iterator I = m_constants.find (N);
621621 if (I != m_constants.end ())
622622 {
623623 m_constants.erase (I);
624624 return ;
625625 }
626- Msg (" ! ERROR: Failed to find R1-constant-def '%s'" , C->cName . c_str () );
626+ Msg (" ! ERROR: Failed to find R1-constant-def '%s'" , * C->cName );
627627}
628628
629629void CResourceManager::ED_UpdateConstant (LPCSTR Name, CConstant* data)
0 commit comments