]> Creatis software - gdcm.git/commitdiff
* Fix compilation warnings on linux
authorregrain <regrain>
Mon, 28 Nov 2005 17:24:21 +0000 (17:24 +0000)
committerregrain <regrain>
Mon, 28 Nov 2005 17:24:21 +0000 (17:24 +0000)
   -- BeNours

src/gdcmDirList.cxx
src/gdcmDirList.h
src/gdcmJPEGFragment.cxx
src/gdcmJPEGFragment.h
src/gdcmRLEFrame.cxx
src/gdcmRLEFrame.h

index 64d0e077b4bf09cfa637e553991c31a0a85a4a5c..9bfa68fdde9fa60f38b55b8550dbf3550c20d4d2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDirList.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 15:20:33 $
-  Version:   $Revision: 1.54 $
+  Date:      $Date: 2005/11/28 17:24:21 $
+  Version:   $Revision: 1.55 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -188,7 +188,7 @@ int DirList::Explore(std::string const &dirpath, bool recursive)
  * \brief   Print method
  * @param os ostream to write to 
  */
-void DirList::Print(std::ostream &os)
+void DirList::Print(std::ostream &os, std::string const &indent)
 {
    std::copy(Filenames.begin(), Filenames.end(), 
              std::ostream_iterator<std::string>(os, "\n"));
index e4707d0f7eab276bbeb19a46d98c656b37357812..bd848459585e5d0051c788dd34702ec0c46defc8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDirList.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:31:23 $
-  Version:   $Revision: 1.29 $
+  Date:      $Date: 2005/11/28 17:24:21 $
+  Version:   $Revision: 1.30 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -45,7 +45,7 @@ public :
    DirList(std::string const &dirName, bool recursive=false);
    ~DirList();
 
-   void Print(std::ostream &os = std::cout);
+   void Print(std::ostream &os = std::cout, std::string const &indent = "" );
 
    /// Return the name of the directory
    std::string const &GetDirName() const { return DirName; }
index 2dc8c121034324a13ac1750fb81a4975a17b2440..709d4a54c07727acc22b035c0f3bbb17dad6bf3d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragment.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:50:32 $
-  Version:   $Revision: 1.16 $
+  Date:      $Date: 2005/11/28 17:24:21 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -99,7 +99,7 @@ void JPEGFragment::DecompressJPEGFramesFromFile(std::ifstream *fp,
  * @param os     Stream to print to.
  * @param indent Indentation string to be prepended during printing.
  */
-void JPEGFragment::Print( std::ostream &os, std::string indent )
+void JPEGFragment::Print( std::ostream &os, std::string const &indent )
 {
    os << indent
       << "JPEG fragment: offset : " <<  Offset
index 7c095ce332e3451cb92d6ce4d11333981efbe66e..18cd2a0112529014e192bfa2af4c97bed80fc769 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragment.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:50:32 $
-  Version:   $Revision: 1.19 $
+  Date:      $Date: 2005/11/28 17:24:21 $
+  Version:   $Revision: 1.20 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -43,7 +43,7 @@ namespace gdcm
 {
 public:
    JPEGFragment();
-   void Print( std::ostream &os = std::cout, std::string indent = "" );
+   void Print( std::ostream &os = std::cout, std::string const &indent = "" );
    void DecompressJPEGFramesFromFile(std::ifstream *fp, 
                                      uint8_t *buffer, int nBits, 
                                      int &statesuspension);
index de4e50d08bbd505e149348e798e648501202fd9a..a3330bb2e34f17c985505273eb775c32aa9892ae 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFrame.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:50:33 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2005/11/28 17:24:21 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -141,7 +141,7 @@ bool RLEFrame::ReadAndDecompressRLEFragment( uint8_t *subRaw,
  * @param indent Indentation string to be prepended during printing.
  * @param os     Stream to print to.
  */
-void RLEFrame::Print( std::ostream &os, std::string indent )
+void RLEFrame::Print( std::ostream &os, std::string const &indent )
 {
    os << indent
       << "--- fragments"
index a4af1a8631b938b27fab306361ef8a14081c12d1..b667116bdc9f0f013ea24614cca7cdda74bed8c5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFrame.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:50:33 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2005/11/28 17:24:21 $
+  Version:   $Revision: 1.19 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -49,7 +49,7 @@ friend class File;
 friend class RLEFramesInfo;
 private:
    RLEFrame() { NumberOfFragments = 0; }
-   void Print( std::ostream &os = std::cout, std::string indent = "" );
+   void Print( std::ostream &os = std::cout, std::string const &indent = "" );
 
    void SetNumberOfFragments(unsigned int number) 
                                        { NumberOfFragments = number; }