0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
[occt.git] / src / Draw / Draw_GraphicCommands.cxx
index f09244b..4a0aa4c 100644 (file)
@@ -64,11 +64,11 @@ static Standard_Integer ViewId(const Standard_CString a)
 {
   Standard_Integer id = Draw::Atoi(a);
   if ((id < 0) || (id >= MAXVIEW)) {
-    cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<endl;
+    std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<std::endl;
     return -1;
   }
   if (!dout.HasView(id)) {
-    cout <<"View "<<id<<" does not exist."<<endl;
+    std::cout <<"View "<<id<<" does not exist."<<std::endl;
     return -1;
   }
   return id;
@@ -195,12 +195,12 @@ static Standard_Integer wzoom(Draw_Interpretor& di, Standard_Integer argc, const
     id = atoi(argv[1]); 
     if ((id < 0) || (id >= MAXVIEW)) 
     {
-      cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<endl;
+      std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<std::endl;
       return 1;
     }
     if (!dout.HasView(id))
     {
-      cout <<"View "<<id<<" does not exist."<<endl;
+      std::cout <<"View "<<id<<" does not exist."<<std::endl;
       return 1;
     }
     X1 = atoi (argv [2]);
@@ -727,7 +727,7 @@ static Standard_Integer hardcopy(Draw_Interpretor& ,
   Standard_Integer pxmax = (Standard_Integer)((dx - cad) * rap);
   Standard_Integer pymax = (Standard_Integer)((dy - cad) * rap);
 
-  ofstream os(file);
+  std::ofstream os(file);
 
   Standard_Integer vxmin,vymin,vxmax,vymax;
   if (dout.HasView(iview)) {