From: malaterre Date: Fri, 18 Aug 2006 18:34:57 +0000 (+0000) Subject: ENH: Make code a little more const correct X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=682cfd79cf323825c8a2bee54046a14ae0b1cc5a;p=gdcm.git ENH: Make code a little more const correct --- diff --git a/src/gdcmVR.cxx b/src/gdcmVR.cxx index 0bac8c4f..3a7cd294 100644 --- a/src/gdcmVR.cxx +++ b/src/gdcmVR.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmVR.cxx,v $ Language: C++ - Date: $Date: 2006/08/18 16:10:48 $ - Version: $Revision: 1.53 $ + Date: $Date: 2006/08/18 18:34:57 $ + Version: $Revision: 1.54 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -170,11 +170,11 @@ unsigned short VR::GetAtomicElementLength(VRKey const &tested) bool VR::IsValidVR(VRKey const &tested) { // return vr.find(key) != vr.end(); - static char *VRvalues = + static const char VRvalues[] = "AEASCSDADSFLFDISLOLTPNSHSLSSSTTMUIULUSUTOBOWOFATUNSQ"; - int nbVal=26; - char *pt = VRvalues; + int nbVal = 26; + const char *pt = VRvalues; for (int i=0;i