summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2011-01-18 15:51:21 +0100
committerdt <qtc-committer@nokia.com>2011-01-19 15:47:00 +0100
commit3278d6c77c516e740b245b40b33017ed9d23cda0 (patch)
tree9d0b023e2c185aa23349032141838cc90b97a4b1
parentfd3d7de92c9388781d0007ed2644ac22b7dbc652 (diff)
downloadqt-creator-3278d6c77c516e740b245b40b33017ed9d23cda0.tar.gz
Session Manager: Simplfy code
-rw-r--r--src/plugins/projectexplorer/session.cpp7
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)