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:
Vadim Zeitlin
2014-01-19 19:03:28 +00:00
parent 239d77c8e4
commit 0997127e37

View File

@@ -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 )