Refactor and fix some object arithmetic comparisons

This commit is contained in:
Vinnie Falco
2013-11-30 06:27:54 -08:00
parent 76c364ec2d
commit 130c7c5c58
6 changed files with 112 additions and 74 deletions

View File

@@ -123,6 +123,16 @@ void ServerImpl::remove (Door& door)
//
// Thread
//
//--------------------------------------------------------------------------
int ServerImpl::compare (Port const& lhs, Port const& rhs)
{
if (lhs < rhs)
return -1;
else if (lhs > rhs)
return 1;
return 0;
}
// Updates our Door list based on settings.
//