Skip to content

Commit d0e71ab

Browse files
committed
fix: fixed compilation issue when NO_CRASH_HANDLER compiler flag is set
1 parent 7868e43 commit d0e71ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
#include <sys/stat.h>
1919
#include <sys/time.h>
2020

21+
static QTranslator* qtTranslator = nullptr;
22+
static QTranslator* translator = nullptr;
23+
2124
#ifndef NO_CRASH_HANDLER
2225
#include "crash/airbag.h"
2326
#include "crash/stacktrace.h"
2427

2528
static bool SPIN_ON_CRASH = false;
2629

27-
static QTranslator* qtTranslator = nullptr;
28-
static QTranslator* translator = nullptr;
29-
3030
void onExceptionRaised(int fd)
3131
{
3232
Q_UNUSED(fd)

0 commit comments

Comments
 (0)