do not make m_enable protected

This commit is contained in:
Mathieu Lacage committed 2008-07-02 13:21:43 -07:00
1 parent 056c8a7855
commit 2d76aafcfb
2 files changed
+3 -5

No files matched your search

+2 -2
View File
@@ -178,7 +178,7 @@ bool
RateErrorModel::DoCorrupt (Ptr<Packet> p)
{
NS_LOG_FUNCTION_NOARGS ();
if (!m_enable)
if (!IsEnabled ())
{
return false;
}
@@ -275,7 +275,7 @@ bool
ListErrorModel::DoCorrupt (Ptr<Packet> p)
{
NS_LOG_FUNCTION_NOARGS ();
if (!m_enable)
if (!IsEnabled ())
{
return false;
}
+1 -3
View File
@@ -104,9 +104,6 @@ public:
*/
bool IsEnabled (void) const;
protected:
bool m_enable;
private:
/*
* These methods must be implemented by subclasses
@@ -114,6 +111,7 @@ private:
virtual bool DoCorrupt (Ptr<Packet>) = 0;
virtual void DoReset (void) = 0;
bool m_enable;
};
enum ErrorUnit