[Kst] extragear/graphics/kst/kst/datasources/dirfile
Ted Kisner
tskisner.public at gmail.com
Thu Jan 5 00:12:48 CET 2006
SVN commit 494407 by tskisner:
Regardless of the value of FIELD_LENGTH, I think we want to use it here rather than using the bare number.
M +4 -4 dirfile.cpp
--- trunk/extragear/graphics/kst/kst/datasources/dirfile/dirfile.cpp #494406:494407
@@ -91,13 +91,13 @@
int err = 0;
if (n < 0) {
- return GetData(_filename.latin1(), field.left(16).latin1(),
+ return GetData(_filename.latin1(), field.left(FIELD_LENGTH).latin1(),
s, 0, /* 1st sframe, 1st samp */
0, 1, /* num sframes, num samps */
'd', (void*)v,
&err);
} else {
- return GetData(_filename.latin1(), field.left(16).latin1(),
+ return GetData(_filename.latin1(), field.left(FIELD_LENGTH).latin1(),
s, 0, /* 1st sframe, 1st samp */
n, 0, /* num sframes, num samps */
'd', (void*)v,
@@ -108,14 +108,14 @@
bool DirFileSource::isValidField(const QString& field) const {
int err = 0;
- GetSamplesPerFrame(_filename.latin1(), field.left(16).latin1(), &err);
+ GetSamplesPerFrame(_filename.latin1(), field.left(FIELD_LENGTH).latin1(), &err);
return err == 0;
}
int DirFileSource::samplesPerFrame(const QString &field) {
int err = 0;
- return GetSamplesPerFrame(_filename.latin1(), field.left(16).latin1(), &err);
+ return GetSamplesPerFrame(_filename.latin1(), field.left(FIELD_LENGTH).latin1(), &err);
}
More information about the Kst
mailing list