forked from qt-creator/qt-creator
add errorString output argument to IFile::save()
this centralizes error reporting (in fact, in most cases it adds any in the first place). Task-number: QTCREATORBUG-1619
This commit is contained in:
@@ -48,8 +48,9 @@ TaskFile::TaskFile(QObject *parent) : Core::IFile(parent),
|
||||
TaskFile::~TaskFile()
|
||||
{ }
|
||||
|
||||
bool TaskFile::save(const QString &fileName)
|
||||
bool TaskFile::save(QString *errorString, const QString &fileName)
|
||||
{
|
||||
Q_UNUSED(errorString)
|
||||
Q_UNUSED(fileName);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
TaskFile(QObject *parent);
|
||||
~TaskFile();
|
||||
|
||||
bool save(const QString &fileName = QString());
|
||||
bool save(QString *errorString, const QString &fileName = QString());
|
||||
QString fileName() const;
|
||||
|
||||
QString defaultPath() const;
|
||||
|
||||
Reference in New Issue
Block a user