Changeset 3512 in ntrip


Ignore:
Timestamp:
Dec 13, 2011, 12:37:13 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/GPSS/hassDecoder.cpp

    r3508 r3512  
    1616 * -----------------------------------------------------------------------*/
    1717
     18#include <iostream>
    1819#include "hassDecoder.h"
    1920#include "bnctime.h"
     
    4445  while ( (indexEOL = _buffer.indexOf('\n')) != -1) {
    4546    QByteArray line = _buffer.left(indexEOL-1);
    46     _buffer = _buffer.mid(indexEOL);
     47    _buffer = _buffer.mid(indexEOL+1);
    4748
    48     if (QString(line).split(QRegExp("\\s+")).count() != 11) {
     49    if (QString(line).split(QRegExp("\\s+"), QString::SkipEmptyParts).count() != 11) {
    4950      continue;
    5051    }
Note: See TracChangeset for help on using the changeset viewer.