X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmVR.cxx;h=19596be9470c2e6d39ec0f035cb533df61281a6d;hb=db08881d6b93af8af99bf1b114c72828454c20a3;hp=0bac8c4f52a2932feb80fc3ae68ae8f339224a00;hpb=aefb6795ff05e125ff5b90b70d9748f5bd545a48;p=gdcm.git diff --git a/src/gdcmVR.cxx b/src/gdcmVR.cxx index 0bac8c4f..19596be9 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: 2007/06/22 10:02:48 $ + Version: $Revision: 1.56 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,7 +25,7 @@ #include #include -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- /// \brief auto generated function, to fill up the 'Value Representation' @@ -170,16 +170,20 @@ 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