Make code self-documenting by using symbolic constants

This commit is contained in:
Nik Bougalis
2017-04-13 11:31:38 -07:00
committed by seelabs
parent 397410bac6
commit 3666948610
5 changed files with 28 additions and 33 deletions

View File

@@ -72,7 +72,7 @@ STTx::STTx (SerialIter& sit)
{
int length = sit.getBytesLeft ();
if ((length < Protocol::txMinSizeBytes) || (length > Protocol::txMaxSizeBytes))
if ((length < txMinSizeBytes) || (length > txMaxSizeBytes))
Throw<std::runtime_error> ("Transaction length invalid");
set (sit);