From 682cfd79cf323825c8a2bee54046a14ae0b1cc5a Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 18 Aug 2006 18:34:57 +0000 Subject: [PATCH] ENH: Make code a little more const correct --- src/gdcmVR.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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