]> OCCT Git - occt-copy.git/commitdiff
Warnings
authorabv <abv@opencascade.com>
Thu, 17 Sep 2015 20:12:44 +0000 (23:12 +0300)
committerabv <abv@opencascade.com>
Thu, 17 Sep 2015 20:12:44 +0000 (23:12 +0300)
src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx
src/BinLDrivers/BinLDrivers_DocumentSection.cxx
src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx

index 54d6bfad6ec1fcf192a653679a503ac61f10d9e0..e05566c8216fd9e82242b73856b2c8afb380dfae 100644 (file)
@@ -192,7 +192,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)&
   }
 
   // skip info section
-  theDevice->Seek ((streampos) anInfoSectionEnd);
+  theDevice->Seek (anInfoSectionEnd);
 
   // propagate the opened document version to data drivers
   PropagateDocumentVersion(aFileVer);
@@ -204,7 +204,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)&
   mySections.Clear();
   myPAtt.Init();
   Handle(TDF_Data) aData = new TDF_Data();
-  streampos aDocumentPos = -1;
+  Storage_Position aDocumentPos = -1;
 
   // 2b. Read the TOC of Sections
   if (aFileVer >= 3) {
@@ -220,7 +220,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)&
     for (; anIterS.More(); anIterS.Next()) {
       BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue();
       if (aCurSection.IsPostRead() == Standard_False) {
-        theDevice->Seek((streampos) aCurSection.Offset());
+        theDevice->Seek((Storage_Position)aCurSection.Offset());
         if (aCurSection.Name().IsEqual ((Standard_CString)SHAPESECTION_POS)) 
           ReadShapeSection (aCurSection, theDevice);
         else
@@ -257,7 +257,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)&
 #endif
       if(aShapeSectionPos) { 
        aDocumentPos = theDevice->Tell();
-       theDevice->Seek ((streampos) aShapeSectionPos);
+       theDevice->Seek (aShapeSectionPos);
 
        //CheckShapeSection(aShapeSectionPos, theDevice);
        // Read Shapes
@@ -294,7 +294,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)&
     for (; anIterS.More(); anIterS.Next()) {
       BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue();
       if (aCurSection.IsPostRead()) {
-       theDevice->Seek ((streampos) aCurSection.Offset());
+       theDevice->Seek ((Storage_Position)aCurSection.Offset());
        ReadSection (aCurSection, theNewDocument, theDevice); 
       }
     }
index 7172921ddc07908051aeae086b4434b4f981f104..cebcd4ab5e5b915d5b761c8bb4848e387362fdc0 100644 (file)
@@ -161,7 +161,7 @@ void BinLDrivers_DocumentSection::Write (const Handle(Storage_IODevice)& theDevi
                                          const Standard_Size theOffset)
 {
   const Standard_Size aSectionEnd = (Standard_Size)theDevice->Tell();
-  theDevice->Seek(myValue[0]);
+  theDevice->Seek((Storage_Position)myValue[0]);
   myValue[0] = theOffset;
   myValue[1] = aSectionEnd - theOffset;
   Standard_Integer aVal[3] = {
@@ -176,7 +176,7 @@ void BinLDrivers_DocumentSection::Write (const Handle(Storage_IODevice)& theDevi
 #endif
 
   theDevice->Write((Standard_Address)&aVal[0], 3*sizeof(Standard_Integer));
-  theDevice->Seek(aSectionEnd);
+  theDevice->Seek((Storage_Position)aSectionEnd);
 }
 
 //=======================================================================
index f4aeece7e51b9b0639a89a3554b8ca0a58b06937..d2b7de00dd372d8da45b2894084f65c2593a5a2c 100644 (file)
@@ -94,7 +94,6 @@ void BinLDrivers_DocumentStorageDriver::Write
     }
 
     theDevice->Open( Storage_VSAppend );
-    Standard_Size aP = theDevice->Tell();
 
     if (theDevice->CanWrite()) {