]> Creatis software - gdcm.git/commitdiff
ENH: Make code a little more const correct
authormalaterre <malaterre>
Fri, 18 Aug 2006 18:34:57 +0000 (18:34 +0000)
committermalaterre <malaterre>
Fri, 18 Aug 2006 18:34:57 +0000 (18:34 +0000)
src/gdcmVR.cxx

index 0bac8c4f52a2932feb80fc3ae68ae8f339224a00..3a7cd29473d48716aacb5ad19daa503c165fb60a 100644 (file)
@@ -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<nbVal;i++)
   {
      if(tested[0] == *pt++)