From e2d5245359de0cd419d49b1f3c8e1392c5d9342a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 8 Oct 2017 13:43:42 +0200 Subject: use "static" once, don't propagate from a macro --- compat/base-path.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 compat/base-path.cpp (limited to 'compat/base-path.cpp') 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 + +OTR_COMPAT_EXPORT +never_inline +const QString& application_base_path() +{ + static QString const& const_path = QCoreApplication::applicationDirPath(); + return const_path; +} -- cgit v1.2.3