Build with Clang.
--HG-- branch : develop
This commit is contained in:
parent
07f75f7212
commit
19c6386973
|
@ -84,7 +84,12 @@ TRANSLATIONS += share/translations/valentina.ts \
|
|||
share/translations/valentina_nl.ts
|
||||
|
||||
unix {
|
||||
QMAKE_CXX = ccache g++
|
||||
*-g++{
|
||||
QMAKE_CXX = ccache g++
|
||||
}
|
||||
clang*{
|
||||
QMAKE_CXX = ccache clang++
|
||||
}
|
||||
}
|
||||
|
||||
CONFIG += precompile_header
|
||||
|
|
|
@ -80,7 +80,7 @@ ConfigDialog::ConfigDialog(QWidget *parent) :
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void ConfigDialog::changePage(QListWidgetItem *current, QListWidgetItem *previous)
|
||||
{
|
||||
if (current == false)
|
||||
if (current == nullptr)
|
||||
{
|
||||
current = previous;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,13 @@ unix {
|
|||
target.path = /usr/lib
|
||||
INSTALLS += target
|
||||
|
||||
QMAKE_CXX = ccache g++
|
||||
*-g++{
|
||||
QMAKE_CXX = ccache g++
|
||||
}
|
||||
|
||||
clang*{
|
||||
QMAKE_CXX = ccache clang++
|
||||
}
|
||||
}
|
||||
|
||||
CONFIG += precompile_header
|
||||
|
|
|
@ -298,7 +298,7 @@ public:
|
|||
//------------------------------------------------------------------------------
|
||||
int GetPri() const
|
||||
{
|
||||
if ( m_pCallback.get() == false)
|
||||
if ( m_pCallback.get() == nullptr)
|
||||
{
|
||||
throw QmuParserError ( ecINTERNAL_ERROR );
|
||||
}
|
||||
|
@ -424,7 +424,7 @@ public:
|
|||
{
|
||||
assert ( m_pCallback.get() );
|
||||
|
||||
if ( m_pCallback->GetAddr() == false)
|
||||
if ( m_pCallback->GetAddr() == nullptr)
|
||||
{
|
||||
throw QmuParserError ( ecINTERNAL_ERROR );
|
||||
}
|
||||
|
|
|
@ -884,7 +884,7 @@ bool QmuParserTokenReader::IsVarTok ( token_type &a_Tok )
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
bool QmuParserTokenReader::IsStrVarTok ( token_type &a_Tok )
|
||||
{
|
||||
if ( m_pStrVarDef == false || m_pStrVarDef->empty() )
|
||||
if ( m_pStrVarDef == nullptr || m_pStrVarDef->empty() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user