Work around g++ warning about comparing compatibility_iterator with NULL.
Use double negation to placate both it and MSVC, see r75445. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -333,7 +333,10 @@ bool wxCommandProcessor::IsDirty() const
|
||||
{
|
||||
// We have never been saved, so we are dirty if and only if we have any
|
||||
// commands at all.
|
||||
return m_currentCommand != NULL;
|
||||
//
|
||||
// NB: The ugly "!!" test is needed to avoid warnings both from MSVC in
|
||||
// non-STL build and g++ in STL build.
|
||||
return !!m_currentCommand;
|
||||
}
|
||||
|
||||
if ( !m_currentCommand )
|
||||
|
Reference in New Issue
Block a user