From ed1ba689c0ee1dd8419694494cc3a8efb6594813 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 29 Mar 2007 10:50:14 +0000 Subject: [PATCH] new int[4] should be better than new int(4) to allocate an array :-( --- Example/ReWrite.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Example/ReWrite.cxx b/Example/ReWrite.cxx index 2850b568..f1f63158 100644 --- a/Example/ReWrite.cxx +++ b/Example/ReWrite.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: ReWrite.cxx,v $ Language: C++ - Date: $Date: 2007/03/28 07:56:12 $ - Version: $Revision: 1.23 $ + Date: $Date: 2007/03/29 10:50:14 $ + Version: $Revision: 1.24 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -312,7 +312,7 @@ int main(int argc, char *argv[]) } else { - roiBoundVal = new int(4); + roiBoundVal = new int[4]; roiBoundVal[0] = 0; roiBoundVal[1] = nX-1; roiBoundVal[2] = 0; -- 2.48.1