return EFT.getFunction(name)->longCall(et, ops);
}
else
- qFatal("Unknown function %s", name.data());
+ qFatal("Unknown function %s", qPrintable(name));
return 0;
}
return 0;
}
-const QString&
+const QString
Project::getScenarioName(int sc) const
{
int i = 0;
return QString::null;
}
-const QString&
+const QString
Project::getScenarioId(int sc) const
{
int i = 0;
* Returns a pointer to the scenario with index sc.
* @param sc Index of the scenario in the project scenario list.
*/
- const QString& getScenarioId(int sc) const;
+ const QString getScenarioId(int sc) const;
/**
* Returns the name of a scenario.
* @param sc Index of the scenario in the project scenario list.
*/
- const QString& getScenarioName(int sc) const;
+ const QString getScenarioName(int sc) const;
/**
* Returns the index of the scenario. The index of the first item in the
* list is 1, not 0! If the scenario is unknown -1 is returned.
* Returns the name of the first vacation that the given date falls into.
* If no vacation is found QString::Null is returned.
*/
- const QString& vacationName(time_t vd) const
+ const QString vacationName(time_t vd) const
{
return vacationList.vacationName(vd);
}
return tt;
}
-const QString&
+const QString
ProjectFile::getTaskPrefix()
{
if (openFiles.isEmpty())
bool moreFiles() { return !openFiles.isEmpty(); }
- const QString& getTaskPrefix();
+ const QString getTaskPrefix();
bool generateMakeDepList(const QString& fileName, bool append) const;
}
}
-#endif
\ No newline at end of file
+#endif
}
}
-#endif
\ No newline at end of file
+#endif
}
}
-#endif
\ No newline at end of file
+#endif
return false;
}
-const QString&
+const QString
VacationList::vacationName(time_t date) const
{
for (VacationList::Iterator vli(*this); *vli != 0; ++vli)
void add(const QString& name, const Interval& i);
void add(VacationInterval* vi);
bool isVacation(time_t date) const;
- const QString& vacationName(time_t date) const;
+ const QString vacationName(time_t date) const;
protected:
virtual int compareItems(Q3PtrCollection::Item i1, Q3PtrCollection::Item i2);