0028263: Coding Rules - clean up definition of the class Graphic3d_MaterialAspect
[occt.git] / src / QABugs / QABugs_17.cxx
index 06e5df4..5f4f92b 100644 (file)
@@ -1320,7 +1320,7 @@ static Standard_Integer OCC1174_2 (Draw_Interpretor& di, Standard_Integer argc,
   front.SetDiffuseColor(colf); 
   front.SetSpecularColor(colf); 
   front.SetEmissiveColor(colf); 
-  front.SetTransparency(0.4); 
+  front.SetTransparency (0.4f);
   sa->SetMaterial(front,Aspect_TOFM_FRONT_SIDE); 
 
   Graphic3d_MaterialAspect back = sa->Material(Aspect_TOFM_BACK_SIDE); 
@@ -1328,7 +1328,7 @@ static Standard_Integer OCC1174_2 (Draw_Interpretor& di, Standard_Integer argc,
   back.SetDiffuseColor(colb); 
   back.SetSpecularColor(colb); 
   back.SetEmissiveColor(colb); 
-  back.SetTransparency(0.2); 
+  back.SetTransparency (0.2f);
   sa->SetMaterial(back,Aspect_TOFM_BACK_SIDE); 
 
   AISContext->Redisplay (ais, 1, 0);