Clang: if we're going to crash on purpose, crash the C++ way
This commit is contained in:
parent
97ded0ec48
commit
5cd328dad3
@ -48,7 +48,7 @@ static bool s_isAppDataDirOverridden = false;
|
|||||||
static QTranslator* s_brandingTranslator = nullptr;
|
static QTranslator* s_brandingTranslator = nullptr;
|
||||||
static QTranslator* s_translator = nullptr;
|
static QTranslator* s_translator = nullptr;
|
||||||
static QTranslator* s_qtTranslator = nullptr;
|
static QTranslator* s_qtTranslator = nullptr;
|
||||||
static QString s_translatorLocaleName = QString();
|
static QString s_translatorLocaleName;
|
||||||
|
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
@ -342,7 +342,7 @@ obscure( const QString& string )
|
|||||||
void
|
void
|
||||||
crash()
|
crash()
|
||||||
{
|
{
|
||||||
volatile int* a = (int*)(NULL);
|
volatile int* a = nullptr;
|
||||||
*a = 1;
|
*a = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user