Changeset 6afbc88f in tol


Ignore:
Timestamp:
Oct 9, 2009, 9:00:57 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
69fe54a4
Parents:
5f10b30
Message:

Removing paranoid checking

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1508 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/OIS/oisloader.cpp

    r5f10b30 r6afbc88f  
    156156    TRACE_SHOW_LOW(fun,"2.1");
    157157    EnsureFileOpenR(header_,  "header",  "header.xml");
    158     header_->SetPos(header_->Bytes()-10);
    159     BText foundEnd="NO_FOUND_";
    160     header_->Read(foundEnd.Buffer(), 1, 9);
    161     foundEnd.PutLength(9);
    162     TRACE_SHOW_LOW(fun,"2.2");
    163     BText expectedEnd = "</header>";
    164     if(foundEnd!=expectedEnd)
    165     {
    166       Error(I2("Corrupted XML file: ",
    167                "Fichero XML corrupto: ")+
    168             header_->Name()+
    169             I2("\nThis file should ends with '",
    170                "\nEl fichero debería acabar con '")+
    171             expectedEnd+"'"+
    172             I2(" instead of with '",
    173                " en lugar de con '")+
    174             foundEnd+"'");
    175       Ensure(false);
    176     }
    177     header_->SetPos(0);
    178158    EnsureFileOpenR(tolref_,  "tolref",  ".tolref"   );
    179159    EnsureFileOpenR(oisref_,  "oisref",  ".oisref"   );
Note: See TracChangeset for help on using the changeset viewer.