From 1e2badc35e955c43b3484d7a18bb6b0cca26857f Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 10 Feb 2006 08:28:41 +0000 Subject: [PATCH] Correct a mistake --- src/SALOMEDS/SALOMEDS_TMPFile_i.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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()"); -- 2.39.2