Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1870)

Unified Diff: src/wifi/model/erp-information.cc

Issue 333070043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Updated patch for latest changes. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/wifi/model/erp-information.cc
===================================================================
--- a/src/wifi/model/erp-information.cc
+++ b/src/wifi/model/erp-information.cc
@@ -79,14 +79,14 @@
uint8_t
ErpInformation::GetInformationFieldSize () const
{
- NS_ASSERT (m_erpSupported > 0);
+ NS_ASSERT (m_erpSupported);
return 1;
}
Buffer::Iterator
ErpInformation::Serialize (Buffer::Iterator i) const
{
- if (m_erpSupported < 1)
+ if (!m_erpSupported)
{
return i;
}
@@ -96,7 +96,7 @@
uint16_t
ErpInformation::GetSerializedSize () const
{
- if (m_erpSupported < 1)
+ if (!m_erpSupported)
{
return 0;
}
@@ -106,7 +106,7 @@
void
ErpInformation::SerializeInformationField (Buffer::Iterator start) const
{
- if (m_erpSupported == 1)
+ if (m_erpSupported)
{
start.WriteU8 (m_erpInformation);
}
S. Deronne 2018/02/18 14:52:55 OK to push those changes

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b