summaryrefslogtreecommitdiffhomepage
path: root/compat/base-path.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-07 10:03:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:21 +0100
commit77adaeabaf58ea79496803a83ce9fce582758b78 (patch)
tree0d03f6260edb11d229bb59bd79db492545d3a6f0 /compat/base-path.cpp
parent3fde3ce4964539064f1de9a7070f980bef33aa88 (diff)
compat/base-path: add assert
Diffstat (limited to 'compat/base-path.cpp')
-rw-r--r--compat/base-path.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/base-path.cpp b/compat/base-path.cpp
index 4ef3762e..b544a3d1 100644
--- a/compat/base-path.cpp
+++ b/compat/base-path.cpp
@@ -1,8 +1,12 @@
+#undef NDEBUG
+#include <cassert>
+
#include "base-path.hpp"
#include <QCoreApplication>
const QString& application_base_path()
{
+ assert(qApp && "logic error");
static QString const& const_path = QCoreApplication::applicationDirPath();
return const_path;
}