From: apo Date: Fri, 10 Feb 2006 08:28:41 +0000 (+0000) Subject: Correct a mistake X-Git-Tag: Tag_09032006~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1e2badc35e955c43b3484d7a18bb6b0cca26857f;p=modules%2Fkernel.git Correct a mistake --- diff --git a/src/SALOMEDS/SALOMEDS_TMPFile_i.cxx b/src/SALOMEDS/SALOMEDS_TMPFile_i.cxx index 363df92cc..8f9a28845 100644 --- a/src/SALOMEDS/SALOMEDS_TMPFile_i.cxx +++ b/src/SALOMEDS/SALOMEDS_TMPFile_i.cxx @@ -43,7 +43,7 @@ size_t SALOMEDS_TMPFile_i ::Size() { - if(&myStream.in()) + if(!&myStream.in()) return 0; return myStream->length(); @@ -53,8 +53,8 @@ SALOMEDSImpl_TMPFile::TOctet& SALOMEDS_TMPFile_i ::Get(size_t theIndex) { - if(&myStream.in()) - throw std::out_of_range("SALOMEDS_TMPFile_i::Get(size_t) const - &myStream.in()"); + if(!&myStream.in()) + throw std::out_of_range("SALOMEDS_TMPFile_i::Get(size_t) const - !&myStream.in()"); if(theIndex < 0 || theIndex >= myStream->length()) throw std::out_of_range("SALOMEDS_TMPFile_i::Get(size_t) const - theIndex < 0 || theIndex >= myStream->length()"); @@ -76,7 +76,7 @@ size_t Engines_TMPFile_i ::Size() { - if(&myStream.in()) + if(!&myStream.in()) return 0; return myStream->length(); @@ -86,8 +86,8 @@ SALOMEDSImpl_TMPFile::TOctet& Engines_TMPFile_i ::Get(size_t theIndex) { - if(&myStream.in()) - throw std::out_of_range("Engines_TMPFile_i::Get(size_t) const - &myStream.in()"); + if(!&myStream.in()) + throw std::out_of_range("Engines_TMPFile_i::Get(size_t) const - !&myStream.in()"); if(theIndex < 0 || theIndex >= myStream->length()) throw std::out_of_range("Engines_TMPFile_i::Get(size_t) const - theIndex < 0 || theIndex >= myStream->length()");