diff --git a/NPLib/CATS/TCATSPhysics.cxx b/NPLib/CATS/TCATSPhysics.cxx index fcdf239d66ac7d937be514dc0096bb24ba6e9e34..e5ab70bbeaed2b4c13f586ea830a05bb86c6773c 100644 --- a/NPLib/CATS/TCATSPhysics.cxx +++ b/NPLib/CATS/TCATSPhysics.cxx @@ -1775,11 +1775,8 @@ namespace LOCAL_CATS // tranform an integer to a string string itoa(int value) { - std::ostringstream o; - - if (!(o << value)) - return "" ; - - return o.str(); + char buffer [33]; + sprintf(buffer,"%d",value); + return buffer; } } diff --git a/NPLib/MUST2/TMust2Physics.cxx b/NPLib/MUST2/TMust2Physics.cxx index a6b0ca16dacf05bfaf6b23fd362f9000c247a330..e844ad496b1586b35bf9170336ccb85e6d598881 100644 --- a/NPLib/MUST2/TMust2Physics.cxx +++ b/NPLib/MUST2/TMust2Physics.cxx @@ -1402,15 +1402,12 @@ namespace MUST2_LOCAL // tranform an integer to a string string itoa(int value) - { - std::ostringstream o; - - if (!(o << value)) - return "" ; - - return o.str(); - } - + { + char buffer [33]; + sprintf(buffer,"%d",value); + return buffer; + } + // DSSD // X double fSi_X_E(const TMust2Data* m_EventData , const int i) diff --git a/NPLib/Plastic/TPlasticPhysics.cxx b/NPLib/Plastic/TPlasticPhysics.cxx index aea90e2ecc87e594a0354387e2ba3c95565f3b2f..cfb5de961b42686b51eb0792dd668176b41a0a66 100644 --- a/NPLib/Plastic/TPlasticPhysics.cxx +++ b/NPLib/Plastic/TPlasticPhysics.cxx @@ -37,15 +37,12 @@ using namespace std; #include "TChain.h" // tranform an integer to a string - string itoa(int value) - { - std::ostringstream o; - - if (!(o << value)) - return "" ; - - return o.str(); - } +string itoa(int value) +{ + char buffer [33]; + sprintf(buffer,"%d",value); + return buffer; +} ClassImp(TPlasticPhysics) /////////////////////////////////////////////////////////////////////////// diff --git a/NPLib/SSSD/TSSSDPhysics.cxx b/NPLib/SSSD/TSSSDPhysics.cxx index af8b71ccbf7f4495ac60de58c2398551ae881db7..2ff8e8ab5f636fa378dade6bb6bbfe01cd726b2f 100644 --- a/NPLib/SSSD/TSSSDPhysics.cxx +++ b/NPLib/SSSD/TSSSDPhysics.cxx @@ -38,12 +38,9 @@ using namespace SSSD_LOCAL; // tranform an integer to a string string itoa(int value) { - std::ostringstream o; - - if (!(o << value)) - return "" ; - - return o.str(); + char buffer [33]; + sprintf(buffer,"%d",value); + return buffer; } ClassImp(TSSSDPhysics) diff --git a/NPLib/W1/TW1Physics.cxx b/NPLib/W1/TW1Physics.cxx index 74df997817c465d8a5dd5c8e864f1e471e44f883..e71b1d66b7e54a627d03a960b01f33ef205aa26f 100644 --- a/NPLib/W1/TW1Physics.cxx +++ b/NPLib/W1/TW1Physics.cxx @@ -40,11 +40,9 @@ using namespace LOCAL; // tranform an integer to a string string itoa(int value) { - std::ostringstream o; - - if (!(o << value)) return ""; - - return o.str(); + char buffer [33]; + sprintf(buffer,"%d",value); + return buffer; }