mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
code cleaup in edfparser
This commit is contained in:
parent
7f3cda6893
commit
084cff026c
@ -60,13 +60,11 @@ bool EDFInfo::Open(const QString & name)
|
|||||||
{
|
{
|
||||||
if (hdrPtr != nullptr) {
|
if (hdrPtr != nullptr) {
|
||||||
qWarning() << "EDFInfo::Open() called with file already open " << name;
|
qWarning() << "EDFInfo::Open() called with file already open " << name;
|
||||||
sleep(1);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
QFile fi(name);
|
QFile fi(name);
|
||||||
if (!fi.open(QFile::ReadOnly)) {
|
if (!fi.open(QFile::ReadOnly)) {
|
||||||
qDebug() << "EDFInfo::Open() Couldn't open file " << name;
|
qDebug() << "EDFInfo::Open() Couldn't open file " << name;
|
||||||
sleep(1);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// fileData = new QByteArray();
|
// fileData = new QByteArray();
|
||||||
@ -79,7 +77,6 @@ bool EDFInfo::Open(const QString & name)
|
|||||||
if (fileData.size() <= EDFHeaderSize) {
|
if (fileData.size() <= EDFHeaderSize) {
|
||||||
fileData.clear();;
|
fileData.clear();;
|
||||||
qDebug() << "EDFInfo::Open() File too short " << name;
|
qDebug() << "EDFInfo::Open() File too short " << name;
|
||||||
sleep(1);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
filename = name;
|
filename = name;
|
||||||
|
Loading…
Reference in New Issue
Block a user