]> Creatis software - gdcm.git/blobdiff - Example/PrintDocument.cxx
* src/gdcmDocument.cxx: gdcmDocument::~gdcmDocument() doesn't clear (nor
[gdcm.git] / Example / PrintDocument.cxx
index d3ceeb25dafc9157d92c24d848f5bcec7dc7914a..09305c570d3ab7d1b486815b3e0937e9941cfb97 100644 (file)
@@ -8,8 +8,10 @@ int main(int argc, char* argv[])
    std::string fileName;   
 
    if (argc != 2) {
-      std::cout << " Usage : " << argv[0] 
-                << " filename." << std::endl;
+      std::cout << " Usage : "
+                << argv[0] 
+                << " filename."
+                << std::endl;
    }
 
    if (argc > 1) {
@@ -19,8 +21,7 @@ int main(int argc, char* argv[])
       fileName += "/test.acr";
    }
    
-   e1= new gdcmHeader 
-      (fileName.c_str(),false, true);
+   e1= new gdcmHeader( fileName.c_str() );
 
    e1->SetPrintLevel(2);