X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmTagKey.h;h=ad325d20f2a6bb679ae7b7a5f288eb37c5d2f36a;hb=282225e34db2bc062080c4993974ba152b74c4dc;hp=6653618841edd6d54d87a06689e2ffb8a59433b3;hpb=5297c664d2e2a380570f0aef41535ce547923b46;p=gdcm.git 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];