]> OCCT Git - occt-copy.git/commitdiff
# fixes for the compilation errors and warnings
authormpv <mpv@opencascade.com>
Mon, 11 Jan 2021 09:00:29 +0000 (12:00 +0300)
committeragv <agv@opencascade.com>
Sun, 24 Jan 2021 15:23:41 +0000 (18:23 +0300)
src/BinObjMgt/BinObjMgt_Persistent.cxx
src/BinTools/BinTools_ShapeReader.hxx
src/BinTools/BinTools_ShapeSetBase.hxx
tests/caf/progress/A1
tests/caf/progress/B1
tests/caf/progress/C1

index d8900ed810dbf4e265f8b2d687bc9b7789933547..4bfc476dd69dd239f5de0c905d54faad6a01298d 100644 (file)
@@ -54,8 +54,8 @@ BinObjMgt_Persistent::BinObjMgt_Persistent ()
        myOffset(BP_HEADSIZE),
        mySize  (BP_HEADSIZE),
        myIsError (Standard_False),
-       myIStream (NULL),
        myOStream (NULL),
+       myIStream (NULL),
        myDirectWritingIsEnabled (Standard_False)
 {
   Init();
@@ -153,7 +153,8 @@ Standard_IStream& BinObjMgt_Persistent::Read (Standard_IStream& theIS)
     aData[1] = InverseInt (aData[1]);
     aData[2] = InverseInt (aData[2]);
 #endif
-    if (myDirectWritingIsEnabled = (aData[1] < 0))
+    myDirectWritingIsEnabled = aData[1] < 0;
+    if (myDirectWritingIsEnabled)
       aData[1] = -aData[1];
     if (theIS && aData[2] > 0) {
       mySize += aData[2];
index 1af5fcf45a71b5ff76d74a8b4f5e4cb3a662205c..577100e0a93683d60f4e2db9c1890c406fe2f3af 100644 (file)
@@ -26,12 +26,6 @@ class Poly_Polygon3D;
 class Poly_PolygonOnTriangulation;
 class Poly_Triangulation;
 
-//! Computes a hash code for the given value of the uint64_t type, in range [1, theUpperBound]
-inline Standard_Integer HashCode (const uint64_t theValue, const Standard_Integer theUpperBound)
-{
-  return IntegerHashCode(theValue, 0xffffffffffffffff, theUpperBound);
-}
-
 //! Reads topology from IStream in binary format without grouping of objects by types
 //! and using relative positions in a file as references.
 class BinTools_ShapeReader : public BinTools_ShapeSetBase
index 2a09175a20f89d2a7319c70641bce26c575f875a..e2c1a6fea285c5a326f69d11bcf70d207eda29bf 100644 (file)
@@ -29,6 +29,12 @@ class gp_Pnt;
 //! Writes to the stream a gp_Pnt data
 Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt P);
 
+//! Computes a hash code for the given value of the uint64_t type, in range [1, theUpperBound]
+inline Standard_Integer HashCode (const uint64_t theValue, const Standard_Integer theUpperBound)
+{
+  return IntegerHashCode(theValue, 0xffffffffffffffff, theUpperBound);
+}
+
 //! A base class for all readers/writers of TopoDS_Shape into/from stream.
 class BinTools_ShapeSetBase
 {
index e6ff3db139489e8a1f6bfd8f48d2a1995b51fbe0..ad79274857ccf3e098dd55f91b74593843275565 100644 (file)
@@ -25,9 +25,7 @@ set output [SaveAs Doc ${imagedir}/testA1.cbf]
 Close Doc
 
 # Test data
-set ctr { "0%" "Writing document" "Writing sub tree"
-    "Writing geometry" "Writing 2D curves" "Writing curves"
-    "Writing surfases" "Writing shapes" "100%" }
+set ctr { "0%" "Writing document" "Writing sub tree" "100%" }
 
 foreach data ${ctr} {
     if ![regexp $data $output] {
index 6bd7155ea419c5ac268af7e5f8be8013adef5975..7371c42dad166ea0244024036e9416e424f59067 100644 (file)
@@ -25,8 +25,7 @@ set output [Open ${bDoc} Doc]
 Close Doc
 
 # Test data
-set ctr {"0%" "Reading data" "Reading geometry" "Reading curves 2d"
- "Reading surfaces" "Reading Shapes" "Reading sub tree" "100%" }
+set ctr {"0%" "Reading data" "Reading sub tree" "100%" }
 
 foreach data ${ctr} {
     if ![regexp $data $output] {
index c1c39eb2fc6f5c591a9476102f83e600518ed058..7eefdee74979c6c36662828f2e59267983539c9a 100644 (file)
@@ -31,9 +31,7 @@ set output [Save Doc]
 Close Doc
 
 # Test data
-set ctr { "0%" "Writing document" "Writing sub tree"
-    "Writing geometry" "Writing 2D curves" "Writing curves"
-    "Writing surfases" "Writing shapes" "100%" }
+set ctr { "0%" "Writing document" "Writing sub tree" "100%" }
 
 foreach data ${ctr} {
     if ![regexp $data $output] {