@@ -120,12 +120,12 @@ void CLensFlareDescriptor::OnDeviceCreate()
120120 // shaders
121121 m_Gradient.m_pRender ->CreateShader (*m_Gradient.shader , *m_Gradient.texture );
122122 m_Source.m_pRender ->CreateShader (*m_Source.shader , *m_Source.texture );
123- for (FlareIt it = m_Flares.begin (); it != m_Flares.end (); it++)
123+ for (auto it = m_Flares.begin (); it != m_Flares.end (); it++)
124124 it->m_pRender ->CreateShader (*it->shader , *it->texture );
125125 /*
126126 m_Gradient.hShader = CreateShader (*m_Gradient.texture,*m_Gradient.shader);
127127 m_Source.hShader = CreateShader (*m_Source.texture,*m_Source.shader);
128- for (FlareIt it=m_Flares.begin(); it!=m_Flares.end(); it++) it->hShader = CreateShader(*it->texture,*it->shader);
128+ for (auto it=m_Flares.begin(); it!=m_Flares.end(); it++) it->hShader = CreateShader(*it->texture,*it->shader);
129129 */
130130}
131131
@@ -134,12 +134,12 @@ void CLensFlareDescriptor::OnDeviceDestroy()
134134 // shaders
135135 m_Gradient.m_pRender ->DestroyShader ();
136136 m_Source.m_pRender ->DestroyShader ();
137- for (FlareIt it = m_Flares.begin (); it != m_Flares.end (); it++)
137+ for (auto it = m_Flares.begin (); it != m_Flares.end (); it++)
138138 it->m_pRender ->DestroyShader ();
139139 /*
140140 m_Gradient.hShader.destroy ();
141141 m_Source.hShader.destroy ();
142- for (FlareIt it=m_Flares.begin(); it!=m_Flares.end(); it++) it->hShader.destroy();
142+ for (auto it=m_Flares.begin(); it!=m_Flares.end(); it++) it->hShader.destroy();
143143 */
144144}
145145
@@ -552,7 +552,7 @@ void CLensFlare::Render(BOOL bSun, BOOL bFlares, BOOL bGradient)
552552 vecDx.normalize (vecAxis);
553553 vecDy.crossproduct (vecDx, vecDir);
554554 if (m_Current->m_Flags.is(CLensFlareDescriptor::flFlare)){
555- for (CLensFlareDescriptor::FlareIt it=m_Current->m_Flares.begin(); it!=m_Current->m_Flares.end(); it++){
555+ for (CLensFlareDescriptor::auto it=m_Current->m_Flares.begin(); it!=m_Current->m_Flares.end(); it++){
556556 CLensFlareDescriptor::SFlare& F = *it;
557557 vec.mul (vecAxis, F.fPosition);
558558 vec.add (vecCenter);
@@ -608,7 +608,7 @@ shared_str CLensFlare::AppendDef(CEnvironment& environment, CInifile* pIni, LPCS
608608{
609609 if (!sect || (0 == sect[0 ]))
610610 return " " ;
611- for (LensFlareDescIt it = m_Palette.begin (); it != m_Palette.end (); it++)
611+ for (auto it = m_Palette.begin (); it != m_Palette.end (); it++)
612612 if (0 == xr_strcmp (*(*it)->section , sect))
613613 return sect;
614614
@@ -623,14 +623,14 @@ void CLensFlare::OnDeviceCreate()
623623 m_pRender->OnDeviceCreate ();
624624
625625 // palette
626- for (LensFlareDescIt it = m_Palette.begin (); it != m_Palette.end (); it++)
626+ for (auto it = m_Palette.begin (); it != m_Palette.end (); it++)
627627 (*it)->OnDeviceCreate ();
628628}
629629
630630void CLensFlare::OnDeviceDestroy ()
631631{
632632 // palette
633- for (LensFlareDescIt it = m_Palette.begin (); it != m_Palette.end (); it++)
633+ for (auto it = m_Palette.begin (); it != m_Palette.end (); it++)
634634 (*it)->OnDeviceDestroy ();
635635
636636 // VS
0 commit comments