Ignore:
Timestamp:
05/31/12 17:11:37 (12 years ago)
Author:
tbretz
Message:
Removed some more unnecessary c_str()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/MessageDim.cc

    r11837 r14006  
    3535//
    3636MessageDimTX::MessageDimTX(const std::string &name, std::ostream &out)
    37     : DimDescribedService((name + "/MESSAGE").c_str(), const_cast<char*>(""),
     37    : DimDescribedService(name + "/MESSAGE", const_cast<char*>(""),
    3838                          "A general logging service providing a quality of service (severity)"
    3939                          "|Message[string]:The message"),
     
    168168        return;
    169169
    170     stringstream msg;
    171     msg << server << ": " << fDimMessage.getString();
     170    const string msg = server+": "+fDimMessage.getString();
    172171
    173172    // Make sure getTimestamp is called _before_ getTimestampMillisecs
     
    177176
    178177    // Write the received message to the output
    179     fMsg.Write(Time(tsec, tms*1000), msg.str().c_str(), fDimMessage.getQuality());
     178    fMsg.Write(Time(tsec, tms*1000), msg, fDimMessage.getQuality());
    180179}
Note: See TracChangeset for help on using the changeset viewer.