--- a/src/helper/on-off-helper.cc Mon Apr 14 16:19:17 2008 -0700
+++ b/src/helper/on-off-helper.cc Thu Apr 17 13:42:25 2008 -0700
@@ -27,12 +27,12 @@
OnOffHelper::OnOffHelper (std::string protocol, Address address)
{
m_factory.SetTypeId ("ns3::OnOffApplication");
- m_factory.Set ("Protocol", String(protocol));
- m_factory.Set ("Remote", address);
+ m_factory.Set ("Protocol", StringValue (protocol));
+ m_factory.Set ("Remote", AddressValue (address));
}
void
-OnOffHelper::SetAttribute (std::string name, Attribute value)
+OnOffHelper::SetAttribute (std::string name, const AttributeValue &value)
{
m_factory.Set (name, value);
}