mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 10:02:12 +02:00
Clean up BugSplat initialization
This commit is contained in:
parent
65b82b9bba
commit
27384dbe0a
1 changed files with 2 additions and 6 deletions
|
@ -24,9 +24,9 @@
|
|||
#include "Application.h"
|
||||
#include "InterfaceLogging.h"
|
||||
#include "MainWindow.h"
|
||||
#include <BuildInfo.h>
|
||||
|
||||
#ifdef HAS_BUGSPLAT
|
||||
#include <BuildInfo.h>
|
||||
#include <BugSplat.h>
|
||||
#endif
|
||||
|
||||
|
@ -35,11 +35,7 @@ int main(int argc, const char* argv[]) {
|
|||
|
||||
#if HAS_BUGSPLAT
|
||||
// BugSplat initialization
|
||||
std::unique_ptr<wchar_t> version { new wchar_t(BuildInfo::VERSION.length() + 1) };
|
||||
BuildInfo::VERSION.toWCharArray(version.get());
|
||||
version.get()[BuildInfo::VERSION.length()] = NULL;
|
||||
std::unique_ptr<MiniDmpSender> mpSender { new MiniDmpSender(L"interface_alpha", L"Interface", version.get()) };
|
||||
|
||||
MiniDmpSender mpSender { "interface_alpha", "Interface", BuildInfo::VERSION.toLatin1().constData() };
|
||||
#endif
|
||||
|
||||
QString applicationName = "High Fidelity Interface - " + qgetenv("USERNAME");
|
||||
|
|
Loading…
Reference in a new issue