]> OCCT Git - occt-copy.git/commitdiff
0022685: Missing parentheses around trigraph operator
authorSZY <>
Fri, 18 Nov 2011 10:22:54 +0000 (10:22 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:31:10 +0000 (19:31 +0400)
src/Aspect/Aspect_MarkMapEntry.cxx
src/Aspect/Aspect_TypeMapEntry.cxx
src/Aspect/Aspect_WidthMapEntry.cxx
src/TDataStd/TDataStd_ExtStringArray.cxx
src/TDataStd/TDataStd_IntPackedMap.cxx
src/TDataStd/TDataStd_IntegerArray.cxx
src/TDataStd/TDataStd_RealArray.cxx

index d3565f77495b9020e4bbf8d1c78b5c7ff90dd722..01b64703e923c74e0faed3fea4f2063e8d47b57d 100755 (executable)
@@ -1,4 +1,3 @@
-
 // File         Aspect_MarkMapEntry.cxx
 // Created      Janvier 1995
 // Author       GG
@@ -125,11 +124,11 @@ void Aspect_MarkMapEntry::Dump () const {
   Aspect_TypeOfMarker type = MyStyle.Type() ;
   Standard_Integer i,length = MyStyle.Length() ;
   Standard_Boolean draw = Standard_False ;
-  Standard_Real X,Y;
+  Standard_Real X(0),Y(0);
 
   cout << " Aspect_MarkMapEntry::Dump ()\n";
-  cout << "      MyStyleIsDef : " << (MyStyleIsDef) ? "True\n" : "False\n";
-  cout << "      MyIndexIsDef : " << (MyIndexIsDef) ? "True\n" : "False\n";
+  cout << "      MyStyleIsDef : " << (MyStyleIsDef ? "True\n" : "False\n");
+  cout << "      MyIndexIsDef : " << (MyIndexIsDef ? "True\n" : "False\n");
   cout << "      MarkerStyle : " << (Standard_Integer) type << " Length : " << length << "\n";//WNT
   if( length ) {
     for( i=1 ; i<=length ; i++ ) 
index 5b13d3e36ff05fa89ad25892bb457fe137c53bd1..33a773b1eff686c921dcdfb21898d4a4ca8f48fb 100755 (executable)
@@ -1,4 +1,3 @@
-
 // File         Aspect_TypeMapEntry.cxx
 // Created      Septembre 1993
 // Author       GG
@@ -141,8 +140,8 @@ void Aspect_TypeMapEntry::Dump () const {
   Standard_Integer i,length = MyType.Length() ;
 
   cout << " Aspect_TypeMapEntry::Dump ()\n";
-  cout << "      MyTypeIsDef : " << (MyTypeIsDef) ? "True\n" : "False\n";
-  cout << "      MyIndexIsDef : " << (MyIndexIsDef) ? "True\n" : "False\n";
+  cout << "      MyTypeIsDef : " << (MyTypeIsDef ? "True\n" : "False\n");
+  cout << "      MyIndexIsDef : " << (MyIndexIsDef ? "True\n" : "False\n");
   cout << "      LineStyle : " << (Standard_Integer) style << " Length : " << length << "\n";//WNT
   if( length ) {
     for( i=(MyType.Values()).Lower() ; i<=(MyType.Values()).Upper() ; i++ ) 
index bae135a2d3e715a64156f827fcfbcd23cf68965b..03dae4f25c29518f8dc2811b8c6dfa4dd35d557a 100755 (executable)
@@ -147,8 +147,8 @@ void Aspect_WidthMapEntry::Free () {
 void Aspect_WidthMapEntry::Dump () const {
 
   cout << " Aspect_WidthMapEntry::Dump ()\n";
-  cout << "      MyTypeIsDef : " << (MyTypeIsDef) ? "True\n" : "False\n";
-  cout << "      MyIndexIsDef : " << (MyIndexIsDef) ? "True\n" : "False\n";
+  cout << "      MyTypeIsDef : " << (MyTypeIsDef ? "True\n" : "False\n");
+  cout << "      MyIndexIsDef : " << (MyIndexIsDef ? "True\n" : "False\n");
   cout << "      TypeOfWidth : " << (Standard_Integer) MyType << "\n";//WNT
   cout << "      LineWidth : " << MyWidth << "\n";
   cout << flush;
index ea20e56069aa11e4304e99d932d7e212d87c147f..21c46e7b51aa9eacd005532e871fb9ec2b8df6d3 100755 (executable)
@@ -241,7 +241,7 @@ Standard_OStream& TDataStd_ExtStringArray::Dump (Standard_OStream& anOS) const
     for(i = lower; i<=upper; i++)
       anOS << "\t" <<myValue->Value(i)<<endl;
   }
-  anOS << " Delta is " << myIsDelta ? "ON":"OFF";
+  anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
   anOS << endl;
   return anOS;
 }
index 6d42b773909e5017ae94bd372fdab739cf5d4be4..87f8f68199b26aaf47ebd2ea47d7ce0b80dc6b20 100755 (executable)
@@ -187,7 +187,7 @@ Standard_OStream& TDataStd_IntPackedMap::Dump(Standard_OStream& theOS) const
 {
   Standard_OStream& anOS = TDF_Attribute::Dump( theOS );
   anOS << "IntPackedMap size = " << Extent();
-  anOS << " Delta is " << myIsDelta ? "ON":"OFF";
+  anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
   anOS << endl;
   return anOS;
 }
index 5aba81b5637f5782c7f438358131a2bb1a72826d..9803a87d02a1569f5573916b24193ed8f492867a 100755 (executable)
@@ -244,7 +244,7 @@ Standard_OStream& TDataStd_IntegerArray::Dump (Standard_OStream& anOS) const
     for(i = lower; i<=upper; i++)
       anOS << " " <<myValue->Value(i);
   }
-  anOS << " Delta is " << myIsDelta ? "ON":"OFF";
+  anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
   anOS << endl;
 
   // anOS <<"\nAttribute fields: ";
index e07faa55f5a89371ac900bd1bb79d7317b8b6538..9a709dce47a5ff401d73598bcc8dc8422ca5eea0 100755 (executable)
@@ -242,7 +242,7 @@ Standard_OStream& TDataStd_RealArray::Dump (Standard_OStream& anOS) const
     for(i = lower; i<=upper; i++)
       anOS << " " <<myValue->Value(i);
   }
-  anOS << " Delta is " << myIsDelta ? "ON":"OFF";
+  anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
   anOS << endl;
   return anOS;
 }