From: jpr Date: Fri, 9 Jul 2010 09:20:17 +0000 (+0000) Subject: Thx to Jean-Michel Rouet for reporting compile error. X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=gdcm.git;a=commitdiff_plain;h=8fc2d3bff394fba8732199dda6e98fa1f5bfd5d2 Thx to Jean-Michel Rouet for reporting compile error. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 85f0488d..2d385c98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,13 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.0) # okay in fact you need at least cmake 2.0.4 to get swig working properly # and you cannot use cmake 2.0.6 out of the box due to a bug (patched in debian package) + + if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) + endif(COMMAND cmake_policy) + + + #----------------------------------------------------------------------------- # GDCM version number, usefull for packaging and doxygen doc: SET(GDCM_MAJOR_VERSION 1) diff --git a/src/gdcmDataEntry.cxx b/src/gdcmDataEntry.cxx index fc36ec56..07603e1b 100644 --- a/src/gdcmDataEntry.cxx +++ b/src/gdcmDataEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.cxx,v $ Language: C++ - Date: $Date: 2009/02/05 09:50:09 $ - Version: $Revision: 1.55 $ + Date: $Date: 2010/07/09 09:20:20 $ + 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 @@ -73,7 +73,7 @@ DataEntry::DataEntry(DocEntry *e) { Flag = FLAG_NONE; BinArea = 0; - + SelfArea = true; Copy(e); @@ -85,7 +85,6 @@ DataEntry::DataEntry(DocEntry *e) DataEntry::~DataEntry () { DeleteBinArea(); - } //----------------------------------------------------------------------------- @@ -137,7 +136,7 @@ void DataEntry::CopyBinArea( uint8_t *area, uint32_t length ) bool DataEntry::IsNumerical() { const VRKey &vr = GetVR(); - + return vr == "DS" || vr == "FL" || @@ -169,9 +168,9 @@ bool DataEntry::IsNumerical() { /// \todo rewrite the whole method, in order *not to use* std::string ! std::vector tokens; - + Util::Tokenize ( GetString().c_str(), tokens, "\\" ); - + int nbValues= tokens.size(); if (nbValues == 0) return false; @@ -182,14 +181,14 @@ bool DataEntry::IsNumerical() else for (loop=0; loop Better we fix the problem at Write time