Changeset 6331 in ntrip for trunk/BNC/src/bncoutf.cpp


Ignore:
Timestamp:
Nov 24, 2014, 4:38:47 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5985 r6331  
    3535  _numSec        = 0;
    3636
    37   QFileInfo fileInfo(sklFileName);
    38   _path        = fileInfo.absolutePath() + QDir::separator();
    39   _sklBaseName = fileInfo.baseName();
    40   _extension   = fileInfo.completeSuffix();
    41 
    42   expandEnvVar(_path);
    43   if (!_extension.isEmpty()) {
    44     _extension = "." + _extension;
     37  if (! sklFileName.isEmpty()) {
     38    QFileInfo fileInfo(sklFileName);
     39    _path        = fileInfo.absolutePath() + QDir::separator();
     40    _sklBaseName = fileInfo.baseName();
     41    _extension   = fileInfo.completeSuffix();
     42   
     43    expandEnvVar(_path);
     44    if (!_extension.isEmpty()) {
     45      _extension = "." + _extension;
     46    }
    4547  }
    4648
Note: See TracChangeset for help on using the changeset viewer.