summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-06-03 20:52:31 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-04 08:50:10 -0700
commit9f349a4efca6ef10efaf2b9c70f2ebb22278747e (patch)
treee07f2b859e3837bed290cade6981fed08b93d2cf
parent9d73b6602483fc0b8609adc041d824ec5e43ee62 (diff)
downloadsubsurface-9f349a4efca6ef10efaf2b9c70f2ebb22278747e.tar.gz
Cleanup: make copyPath() function of static linkage
The function was only used in core/qthelper.cpp Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--core/helpers.h1
-rw-r--r--core/qthelper.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/core/helpers.h b/core/helpers.h
index e690245ca..84551b49e 100644
--- a/core/helpers.h
+++ b/core/helpers.h
@@ -26,7 +26,6 @@ QString get_pressure_unit();
QString getSubsurfaceDataPath(QString folderToFind);
QString getPrintingTemplatePathUser();
QString getPrintingTemplatePathBundle();
-void copyPath(QString src, QString dst);
extern const QString get_dc_nickname(const char *model, uint32_t deviceid);
int gettimezoneoffset(timestamp_t when = 0);
int parseDurationToSeconds(const QString &text);
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 638931055..cf4f8d021 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -712,7 +712,7 @@ QString getPrintingTemplatePathBundle()
return path;
}
-void copyPath(QString src, QString dst)
+static void copyPath(QString src, QString dst)
{
QDir dir(src);
if (!dir.exists())