From 4e8079f5271117a37b78b48a563d7396c2425f34 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 9 Jun 2018 16:24:39 +0200 Subject: 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 --- smtk-import/smrtk2ssrfc_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smtk-import/smrtk2ssrfc_window.cpp') 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(); -- cgit v1.2.3-70-g09d2