falconium
23rd March 2011, 22:25
I cannot compile my code due to the message above.
header:
class NESA : public QMainWindow
{
...
QStringList measurementNames;
void filterMeasurements(QStringList &list, QString measurementName);
}
source:
void filterMeasurements(QStringList &list, QString measurementName)
{
bool test = false;
foreach (QString name, list)
{
if (name == measurementName) test = true;
}
if (!test) list.append(measurementName);
}
I call it with filterMeasurements(measurementNames, "x");
Any guess? Thx!
Oh, and of course, the header is included in source.
#include "nesa.h"
header:
class NESA : public QMainWindow
{
...
QStringList measurementNames;
void filterMeasurements(QStringList &list, QString measurementName);
}
source:
void filterMeasurements(QStringList &list, QString measurementName)
{
bool test = false;
foreach (QString name, list)
{
if (name == measurementName) test = true;
}
if (!test) list.append(measurementName);
}
I call it with filterMeasurements(measurementNames, "x");
Any guess? Thx!
Oh, and of course, the header is included in source.
#include "nesa.h"