summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-28 19:59:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-28 19:59:40 +0100
commitceb4eb29b7faefdd3ad8a2e5771aeee35e31177e (patch)
treeda7bf3a6c41b16a0963462d5076175ce0498d00b /compat
parent55afd194527e3c40835d32f872d3c379ad3279c4 (diff)
compat: this isn't a const reference
Diffstat (limited to 'compat')
-rw-r--r--compat/base-path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/base-path.cpp b/compat/base-path.cpp
index b544a3d1..2a26dcff 100644
--- a/compat/base-path.cpp
+++ b/compat/base-path.cpp
@@ -7,6 +7,6 @@
const QString& application_base_path()
{
assert(qApp && "logic error");
- static QString const& const_path = QCoreApplication::applicationDirPath();
- return const_path;
+ static QString path = QCoreApplication::applicationDirPath();
+ return path;
}