I cannot compile my code due to the message above.
header:
{
...
}
class NESA : public QMainWindow
{
...
QStringList measurementNames;
void filterMeasurements(QStringList &list, QString measurementName);
}
To copy to clipboard, switch view to plain text mode
source:
{
bool test = false;
{
if (name == measurementName) test = true;
}
if (!test) list.append(measurementName);
}
void filterMeasurements(QStringList &list, QString measurementName)
{
bool test = false;
foreach (QString name, list)
{
if (name == measurementName) test = true;
}
if (!test) list.append(measurementName);
}
To copy to clipboard, switch view to plain text mode
I call it with filterMeasurements(measurementNames, "x");
Any guess? Thx!
Oh, and of course, the header is included in source.
#include "nesa.h"
Bookmarks