]> Creatis software - gdcm.git/commitdiff
Remove some spurious calls to Format
authorjpr <jpr>
Tue, 7 Jun 2005 10:07:20 +0000 (10:07 +0000)
committerjpr <jpr>
Tue, 7 Jun 2005 10:07:20 +0000 (10:07 +0000)
src/gdcmDictEntry.cxx
src/gdcmDocEntry.cxx
src/gdcmValEntry.cxx

index f47d5276585384b801ff57f4135c1e224bd657b7..db0887359ea0c69f652b62d02f68c2b2f50936f4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/06/07 08:59:39 $
-  Version:   $Revision: 1.46 $
+  Date:      $Date: 2005/06/07 10:07:20 $
+  Version:   $Revision: 1.47 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -98,7 +98,7 @@ TagKey DictEntry::TranslateToKey(uint16_t group, uint16_t elem)
    // time consuming methods.
    // Let's try to shorten it !
  
-   //return Util::Format("%04x|%04x", group, elem);
+   //return Util::Format("%04x|%04x", group, elem); // too much time !
    char res[10];
    sprintf(res,"%04x|%04x", group, elem);
    return res;
index 6224b551b049469b671de3a294bd18da5a1c871f..5f518a61e1cc285d4ebe65ffb99f4cedbcd3f3bf 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/04/19 09:58:19 $
-  Version:   $Revision: 1.55 $
+  Date:      $Date: 2005/06/07 10:07:20 $
+  Version:   $Revision: 1.56 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -231,7 +231,7 @@ void DocEntry::Print(std::ostream &os, std::string const & )
       lgth = GetReadLength(); // ReadLength, as opposed to Length
       if (lgth == 0xffffffff)
       {
-         st = Util::Format("x(ffff)");  // I said : "x(ffff)" !
+         st = "ffff";
          s.setf(std::ios::left);
          s << std::setw(10-st.size()) << " ";  
          s << st << " ";
index 67bfe1d0ad15296704c84189c6d6e29ec63d5b1e..9359185d56d530405ba3954d88893fc2cea0cc8d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmValEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/04/24 16:21:44 $
-  Version:   $Revision: 1.60 $
+  Date:      $Date: 2005/06/07 10:07:20 $
+  Version:   $Revision: 1.61 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -281,7 +281,7 @@ void ValEntry::Print(std::ostream &os, std::string const &)
    {
       if (v == "4294967295") // to avoid troubles in convertion 
       {
-         st = Util::Format(" x(ffffffff)");
+         st = "ffffffff";
       }
       else
       {
@@ -291,7 +291,7 @@ void ValEntry::Print(std::ostream &os, std::string const &)
          }
          else
          {
-            st = Util::Format(" ");
+            st = " ";
          }
       }
       s << st;