From d2264163067117d51727b2275128d93204ec1ae2 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 11 Feb 2016 09:46:31 -0800 Subject: [PATCH] Update params to MiniDmpSender to be const --- interface/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 50f02515e3..f45a6c08b9 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -36,8 +36,11 @@ int main(int argc, const char* argv[]) { #if HAS_BUGSPLAT // Prevent other threads from hijacking the Exception filter, and allocate 4MB up-front that may be useful in // low-memory scenarios. - DWORD bugSplatFlags = MDSF_PREVENTHIJACKING | MDSF_USEGUARDMEMORY; - MiniDmpSender mpSender { "interface_alpha", "Interface", BuildInfo::VERSION.toLatin1().constData(), nullptr, bugSplatFlags }; + static const DWORD BUG_SPLAT_FLAGS = MDSF_PREVENTHIJACKING | MDSF_USEGUARDMEMORY; + static const char* BUG_SPLAT_DATABASE = "interface_alpha"; + static const char* BUG_SPLAT_APPLICATION_NAME = "Interface"; + MiniDmpSender mpSender { BUG_SPLAT_DATABASE, BUG_SPLAT_APPLICATION_NAME, BuildInfo::VERSION.toLatin1().constData(), + nullptr, BUG_SPLAT_FLAGS }; #endif QString applicationName = "High Fidelity Interface - " + qgetenv("USERNAME");