summaryrefslogtreecommitdiffhomepage
path: root/compat/base-path.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:43:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:43:42 +0200
commite2d5245359de0cd419d49b1f3c8e1392c5d9342a (patch)
tree8bd0a19cdf7e04d4cc344031b231ffbc2437d527 /compat/base-path.cpp
parent863b8cad6d95ed2492ac929066f843664a49998d (diff)
use "static" once, don't propagate from a macro
Diffstat (limited to 'compat/base-path.cpp')
-rw-r--r--compat/base-path.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/compat/base-path.cpp b/compat/base-path.cpp
new file mode 100644
index 00000000..3285bac8
--- /dev/null
+++ b/compat/base-path.cpp
@@ -0,0 +1,10 @@
+#include "base-path.hpp"
+#include <QCoreApplication>
+
+OTR_COMPAT_EXPORT
+never_inline
+const QString& application_base_path()
+{
+ static QString const& const_path = QCoreApplication::applicationDirPath();
+ return const_path;
+}