Changeset 9587 in ntrip for trunk/BNC/src/bnccore.cpp


Ignore:
Timestamp:
Jan 7, 2022, 12:49:21 PM (2 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccore.cpp

    r9571 r9587  
    4242#include <sstream>
    4343#include <QMessageBox>
     44//#include <QString>
    4445#include <cmath>
    4546
     
    186187    QByteArray msgLocal = msg;
    187188    if (msg.indexOf('\n') == 0) {
    188       *_logStream << endl;
     189      *_logStream << Qt::endl;
    189190      msgLocal = msg.mid(1);
    190191    }
    191192    *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toLatin1().data();
    192     *_logStream << msgLocal.data() << endl;
     193    *_logStream << msgLocal.data() << Qt::endl;
    193194    _logStream->flush();
    194195    _logFile->flush();
     
    391392      if ( ! (appendFlagGPS & QIODevice::Append)) {
    392393        QString line;
    393         line.sprintf(
     394        line.asprintf(
    394395          "%9.2f%11sN: GNSS NAV DATA    M: Mixed%12sRINEX VERSION / TYPE\n",
    395396          defaultRnxNavVersion3, "", "");
     
    400401                       << _userName.toLatin1().data()
    401402                       << hlp.toLatin1().data()
    402                        << "PGM / RUN BY / DATE" << endl;
     403                       << "PGM / RUN BY / DATE" << Qt::endl;
    403404
    404405        QStringListIterator it(comments);
     
    407408        }
    408409
    409         line.sprintf("%60sEND OF HEADER\n", "");
     410        line.asprintf("%60sEND OF HEADER\n", "");
    410411        *_ephStreamGPS << line;
    411412
     
    419420      if (! (appendFlagGPS & QIODevice::Append)) {
    420421        QString line;
    421         line.sprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n",
     422        line.asprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n",
    422423                     defaultRnxNavVersion2, "", "");
    423424        *_ephStreamGPS << line;
     
    427428                       << _userName.toLatin1().data()
    428429                       << hlp.toLatin1().data()
    429                        << "PGM / RUN BY / DATE" << endl;
     430                       << "PGM / RUN BY / DATE" << Qt::endl;
    430431
    431432        QStringListIterator it(comments);
     
    434435        }
    435436
    436         line.sprintf("%60sEND OF HEADER\n", "");
     437        line.asprintf("%60sEND OF HEADER\n", "");
    437438        *_ephStreamGPS << line;
    438439
     
    449450                           << _userName.toLatin1().data()
    450451                           << hlp.toLatin1().data()
    451                            << "PGM / RUN BY / DATE" << endl;
     452                           << "PGM / RUN BY / DATE" << Qt::endl;
    452453
    453454        QStringListIterator it(comments);
Note: See TracChangeset for help on using the changeset viewer.