Ticket #1: patch_franck.patch

File patch_franck.patch, 2.7 KB (added by lifranck, 9 years ago)
  • DBITEPlayerLib/DbtPlyEngine.cpp

     
    269269////////////////////////////////////////////////////////////////////////////////
    270270void DbtPlyEngine::setState(DbtPlyEngineState * newState)
    271271{
    272     BOOST_ASSERT(newState);
    273     LOG_DEBUG(mCurrentState->toString() << " => " << newState->toString());
     272        BOOST_ASSERT(newState);
     273        LOG_DEBUG(mCurrentState->toString().toStdString() << " => " << newState->toString().toStdString()); //FL added .toStdString()
    274274    mCurrentState = newState;
    275275
    276276    Q_EMIT displayStateSig(mCurrentState, mSpeed);
  • DBITEPlayerLib/DbtPlyFileManager.cpp

     
    285285    int deltaT = road_time() - tNow;
    286286    deltaTDbtTab_[(deltaTDbtTabLoop_++)%1000] = deltaT;
    287287    if (deltaT > kMaxPendingTimeFromEngineMicrosecs) {
    288         LOG_WARN(getName() << ": data not replayed: elapsed time since engine notification too big:" << deltaT << "us");
    289         return;
     288                LOG_WARN(getName().toStdString() << ": data not replayed: elapsed time since engine notification too big:" << deltaT << "us"); //FL added toStdString()
     289                return;
    290290    }
    291291
    292292    timeToRead_ = tDbt;
  • PacpusLib/ComponentBase.cpp

     
    562562void ComponentBase::parseParameters(XmlComponentConfig const& cfg)
    563563{
    564564    LOG_INFO("Parsing parameters...");
    565     LOG_INFO(mOptionsDescription);
     565        std::ostringstream temp_stream;         //FL added
     566        temp_stream << mOptionsDescription;     //FL added
     567        LOG_INFO(temp_stream.str());            //FL changed from LOG_INFO(mOptionsDescription)
    566568   
    567569    po::variables_map vm;
    568570    try {
  • PacpusLib/XmlConfigFile.cpp

     
    189189        int errorColumn = 0;
    190190        if (!m_document.setContent(&m_file, /*namespaceProcessing=*/true, &errorMsg, &errorLine, &errorColumn)) {
    191191            LOG_ERROR("cannot parse XML file " << m_file.fileName());
    192             LOG_ERROR(errorMsg << " at " << errorLine << ":" << errorColumn << " (line:col)");
     192                        LOG_ERROR(errorMsg.toStdString() << " at " << errorLine << ":" << errorColumn << " (line:col)"); //FL added .toStdString()
    193193            m_file.close();
    194194            return 0;
    195195        }