From cf0c73e9fe12827d7ca3027f72573340154db02a Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 15 May 2025 08:03:16 -0700 Subject: QTest::CrashHandler: move the enum definition to the header It's common between the two implementations, though currently completely unused on Windows because we don't start debuggers. Change-Id: I7a42db2db35cf6191693fffd3e4e46d482032630 Reviewed-by: Edward Welbourne Reviewed-by: Ahmad Samir --- src/testlib/qtestcrashhandler_unix.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/testlib/qtestcrashhandler_unix.cpp') diff --git a/src/testlib/qtestcrashhandler_unix.cpp b/src/testlib/qtestcrashhandler_unix.cpp index 6d58a45e6ba..23ba8287d81 100644 --- a/src/testlib/qtestcrashhandler_unix.cpp +++ b/src/testlib/qtestcrashhandler_unix.cpp @@ -244,8 +244,6 @@ bool alreadyDebugging() #endif } -namespace { -enum DebuggerProgram { None, Gdb, Lldb }; static bool hasSystemCrashReporter() { #if defined(Q_OS_MACOS) @@ -254,7 +252,6 @@ static bool hasSystemCrashReporter() return false; #endif } -} // unnamed namespaced void maybeDisableCoreDump() { -- cgit v1.2.3