]> Creatis software - gdcm.git/commitdiff
DOC: Comment
authormalaterre <malaterre>
Fri, 30 Apr 2004 19:41:56 +0000 (19:41 +0000)
committermalaterre <malaterre>
Fri, 30 Apr 2004 19:41:56 +0000 (19:41 +0000)
Testing/TestBug.cxx

index 4d3f22e180b079aea95c55ac5067a4269f4c37f8..dbd378895c6d48c3d236e17d5f0aa178db7bd0a9 100644 (file)
@@ -1,4 +1,7 @@
 // The following crashes on Win32
+// We have to be carefull when the code both use cout + printf VC++ gets
+// confused, thus make sure we use only one kind of iostream
+
 #include "gdcm.h"
 
 int bug1(int argc, char* argv[])
@@ -6,9 +9,8 @@ int bug1(int argc, char* argv[])
    gdcmHeader* e1;
        
    if (argc > 1)
-      e1 = new gdcmHeader(argv[1]);
-   else
-      {
+      e1 = new gdcmHeader( argv[1] );
+   else {
       std::string filename = GDCM_DATA_ROOT;
       filename += "/test.acr";
       e1 = new gdcmHeader( filename.c_str() );