mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Clang: if we're going to crash on purpose, crash the C++ way
This commit is contained in:
parent
97ded0ec48
commit
5cd328dad3
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ static bool s_isAppDataDirOverridden = false;
|
|||
static QTranslator* s_brandingTranslator = nullptr;
|
||||
static QTranslator* s_translator = nullptr;
|
||||
static QTranslator* s_qtTranslator = nullptr;
|
||||
static QString s_translatorLocaleName = QString();
|
||||
static QString s_translatorLocaleName;
|
||||
|
||||
|
||||
static bool
|
||||
|
@ -342,7 +342,7 @@ obscure( const QString& string )
|
|||
void
|
||||
crash()
|
||||
{
|
||||
volatile int* a = (int*)(NULL);
|
||||
volatile int* a = nullptr;
|
||||
*a = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue