X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=src%2FgdcmDict.cxx;h=f95f8d5469439fb9fc2f3290d3a1c31530cd1dba;hb=c22376d455941717d1fa0e43e4bd92a3399e6238;hp=0d219d9f0a5347920c4b08140a6ca3307df6c1fa;hpb=9ca0e4bb2208be93bebf21d0c5d75c8018e7605a;p=gdcm.git diff --git a/src/gdcmDict.cxx b/src/gdcmDict.cxx index 0d219d9f..f95f8d54 100644 --- a/src/gdcmDict.cxx +++ b/src/gdcmDict.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDict.cxx,v $ Language: C++ - Date: $Date: 2005/06/24 10:55:58 $ - Version: $Revision: 1.77 $ + Date: $Date: 2005/07/11 14:53:16 $ + Version: $Revision: 1.78 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -62,7 +62,7 @@ Dict::Dict(std::string const &filename) } else { - while (!from.eof()) + while (!from.eof() && from) { from >> std::hex; from >> group; @@ -102,7 +102,7 @@ bool Dict::AddEntry(DictEntry const &newEntry) if ( KeyHt.count(key) == 1 ) { - gdcmWarningMacro( "Already present" << key.c_str()); + gdcmErrorMacro( "Already present:" << key ); return false; } else @@ -144,7 +144,7 @@ bool Dict::RemoveEntry(TagKey const &key) } else { - gdcmWarningMacro( "Unfound entry" << key.c_str()); + gdcmWarningMacro( "Unfound entry" << key ); return false; } }