From: malaterre Date: Wed, 26 Oct 2005 15:36:19 +0000 (+0000) Subject: BUG: identifier are meaningful in this case... X-Git-Tag: OpenJPEG.Version1.2~142 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=04a29624024ea302e5d58dcecdae74312b29632f;p=gdcm.git BUG: identifier are meaningful in this case... --- diff --git a/src/gdcmTagKey.h b/src/gdcmTagKey.h index 66536188..ad325d20 100644 --- a/src/gdcmTagKey.h +++ b/src/gdcmTagKey.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmTagKey.h,v $ Language: C++ - Date: $Date: 2005/10/26 15:34:33 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/10/26 15:36:19 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -63,12 +63,12 @@ public : tag[1] = _val[1]; } - uint16_t &operator[](const unsigned int &_id) const + const uint16_t &operator[](const unsigned int &_id) const { assert(_id<2); return tag[_id]; } - uint16_t &operator[](const unsigned int &_id) + const uint16_t &operator[](const unsigned int &_id) { assert(_id<2); return tag[_id];