Fix pointer comparison for Boost 1.53.

This commit is contained in:
Stefan Thomas
2013-07-10 17:29:35 -07:00
parent ac4843bc00
commit 664c4a28ea

View File

@@ -920,7 +920,7 @@ int NetworkOPs::beginConsensus (uint256 const& networkClosed, Ledger::pointer cl
bool NetworkOPs::haveConsensusObject () bool NetworkOPs::haveConsensusObject ()
{ {
if (mConsensus) if (mConsensus != nullptr)
return true; return true;
if ((mMode == omFULL) || (mMode == omTRACKING)) if ((mMode == omFULL) || (mMode == omTRACKING))
@@ -941,7 +941,7 @@ bool NetworkOPs::haveConsensusObject ()
} }
} }
return mConsensus; return mConsensus != nullptr;
} }
uint256 NetworkOPs::getConsensusLCL () uint256 NetworkOPs::getConsensusLCL ()