From de3b7ba046faa2c6728c25d54d22eafe6a24040d Mon Sep 17 00:00:00 2001 From: regrain Date: Mon, 28 Nov 2005 17:24:21 +0000 Subject: [PATCH] * Fix compilation warnings on linux -- BeNours --- src/gdcmDirList.cxx | 6 +++--- src/gdcmDirList.h | 6 +++--- src/gdcmJPEGFragment.cxx | 6 +++--- src/gdcmJPEGFragment.h | 6 +++--- src/gdcmRLEFrame.cxx | 6 +++--- src/gdcmRLEFrame.h | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/gdcmDirList.cxx b/src/gdcmDirList.cxx index 64d0e077..9bfa68fd 100644 --- a/src/gdcmDirList.cxx +++ b/src/gdcmDirList.cxx @@ -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(os, "\n")); diff --git a/src/gdcmDirList.h b/src/gdcmDirList.h index e4707d0f..bd848459 100644 --- a/src/gdcmDirList.h +++ b/src/gdcmDirList.h @@ -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; } diff --git a/src/gdcmJPEGFragment.cxx b/src/gdcmJPEGFragment.cxx index 2dc8c121..709d4a54 100644 --- a/src/gdcmJPEGFragment.cxx +++ b/src/gdcmJPEGFragment.cxx @@ -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 diff --git a/src/gdcmJPEGFragment.h b/src/gdcmJPEGFragment.h index 7c095ce3..18cd2a01 100644 --- a/src/gdcmJPEGFragment.h +++ b/src/gdcmJPEGFragment.h @@ -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); diff --git a/src/gdcmRLEFrame.cxx b/src/gdcmRLEFrame.cxx index de4e50d0..a3330bb2 100644 --- a/src/gdcmRLEFrame.cxx +++ b/src/gdcmRLEFrame.cxx @@ -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" diff --git a/src/gdcmRLEFrame.h b/src/gdcmRLEFrame.h index a4af1a86..b667116b 100644 --- a/src/gdcmRLEFrame.h +++ b/src/gdcmRLEFrame.h @@ -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; } -- 2.45.1