diff options
author | dt <qtc-committer@nokia.com> | 2011-01-18 15:51:21 +0100 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2011-01-19 15:47:00 +0100 |
commit | 3278d6c77c516e740b245b40b33017ed9d23cda0 (patch) | |
tree | 9d0b023e2c185aa23349032141838cc90b97a4b1 /src/plugins/projectexplorer/session.cpp | |
parent | fd3d7de92c9388781d0007ed2644ac22b7dbc652 (diff) | |
download | qt-creator-3278d6c77c516e740b245b40b33017ed9d23cda0.tar.gz |
Session Manager: Simplfy code
Diffstat (limited to 'src/plugins/projectexplorer/session.cpp')
-rw-r--r-- | src/plugins/projectexplorer/session.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/session.cpp b/src/plugins/projectexplorer/session.cpp index 932f3f0cdd..f8d8390d4b 100644 --- a/src/plugins/projectexplorer/session.cpp +++ b/src/plugins/projectexplorer/session.cpp @@ -84,7 +84,7 @@ public: SessionFile(); bool load(const QString &fileName); - bool save(const QString &fileName = QString()); + bool save(); QString fileName() const; void setFileName(const QString &fileName); @@ -221,11 +221,8 @@ bool SessionFile::load(const QString &fileName) return true; } -bool SessionFile::save(const QString &fileName) +bool SessionFile::save() { - if (!fileName.isEmpty()) - m_fileName = fileName; - Q_ASSERT(!m_fileName.isEmpty()); if (debug) |