From 4a78ecc7476981eec429361507981c38f9bbaa8f Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 30 Apr 2004 19:41:56 +0000 Subject: [PATCH] DOC: Comment --- Testing/TestBug.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Testing/TestBug.cxx b/Testing/TestBug.cxx index 4d3f22e1..dbd37889 100644 --- a/Testing/TestBug.cxx +++ b/Testing/TestBug.cxx @@ -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() ); -- 2.48.1