[Kst] branches/work/kst/portto4/kst/src/datasources/netcdf

Peter Kümmel syntheticpp at yahoo.com
Wed Apr 21 23:07:30 CEST 2010


SVN commit 1117320 by kuemmel:

use Optional's ctor

 M  +2 -7      kstnetcdf.cpp  


--- branches/work/kst/portto4/kst/src/datasources/netcdf/kstnetcdf.cpp #1117319:1117320
@@ -66,15 +66,10 @@
 
 const DataVector::Optional DataInterfaceNetCdf::optional(const QString &field) const
 {
-  DataVector::Optional opt = {-1, -1, -1};
   if (!netcdf._fieldList.contains(field))
-    return opt;
+    return DataVector::Optional();
 
-  opt.samplesPerFrame = netcdf.samplesPerFrame(field);
-  opt.frameCount = netcdf.frameCount(field);
-  opt.vectorframeCount = -1;
-
-  return opt;
+  return DataVector::Optional(netcdf.frameCount(field), netcdf.samplesPerFrame(field));
 }
 
 


More information about the Kst mailing list