summaryrefslogtreecommitdiffstats
path: root/smtk-import
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-06-09 16:24:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-09 17:11:29 +0200
commit4e8079f5271117a37b78b48a563d7396c2425f34 (patch)
tree74a2a81aee89bede3e5c75c868acc8da759cd60f /smtk-import
parent64c0881e9f529d5220e8ac27ad0a78018773449c (diff)
downloadsubsurface-4e8079f5271117a37b78b48a563d7396c2425f34.tar.gz
Cleanup: make lastUsedDir() functions static and non-slot, respectively
The lastUsedDir() functions of MainWindow and Smrtk2ssrfcWindow don't use any member-objects and are only used in their respective translation units. Therefore, remove them from the class and made of static linkage. The lastUsedImageDir() function was declared as a slog, which makes no sense. Make it a normal static function (though one might argue why it is assiociated with the DiveListView class in the first place). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'smtk-import')
-rw-r--r--smtk-import/smrtk2ssrfc_window.cpp2
-rw-r--r--smtk-import/smrtk2ssrfc_window.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/smtk-import/smrtk2ssrfc_window.cpp b/smtk-import/smrtk2ssrfc_window.cpp
index 344bd4642..e44abe10c 100644
--- a/smtk-import/smrtk2ssrfc_window.cpp
+++ b/smtk-import/smrtk2ssrfc_window.cpp
@@ -35,7 +35,7 @@ Smrtk2ssrfcWindow::~Smrtk2ssrfcWindow()
delete ui;
}
-QString Smrtk2ssrfcWindow::lastUsedDir()
+static QString lastUsedDir()
{
QSettings settings;
QString lastDir = QDir::homePath();
diff --git a/smtk-import/smrtk2ssrfc_window.h b/smtk-import/smrtk2ssrfc_window.h
index 71bfdfd15..c66653094 100644
--- a/smtk-import/smrtk2ssrfc_window.h
+++ b/smtk-import/smrtk2ssrfc_window.h
@@ -22,7 +22,6 @@ public:
private:
Ui::Smrtk2ssrfcWindow *ui;
- QString lastUsedDir();
QString filter();
void updateLastUsedDir(const QString &s);
void closeCurrentFile();