Minor fix of variable declaration to lena-dual-stripe
authorBudiarto Herman <budiarto.herman@magister.fi>
Sat, 07 Sep 2013 12:20:22 +0300
changeset 10356 5bae096e906e
parent 10355 e0cb29e3f4af
child 10357 74fc0fdda26b
Minor fix of variable declaration to lena-dual-stripe
src/lte/examples/lena-dual-stripe.cc
--- a/src/lte/examples/lena-dual-stripe.cc	Sat Sep 07 12:18:26 2013 +0300
+++ b/src/lte/examples/lena-dual-stripe.cc	Sat Sep 07 12:20:22 2013 +0300
@@ -568,8 +568,6 @@
   Ipv4InterfaceContainer ueIpIfaces;
   Ptr<Node> remoteHost;
   NetDeviceContainer ueDevs;
-  NetDeviceContainer::Iterator ueDevIt;
-  NetDeviceContainer::Iterator enbDevIt;
 
   if (epc)
     {
@@ -620,6 +618,8 @@
       lteHelper->AttachToClosestEnb (macroUeDevs, macroEnbDevs);
 
       // each home UE is attached explicitly to its home eNB
+      NetDeviceContainer::Iterator ueDevIt;
+      NetDeviceContainer::Iterator enbDevIt;
       for (ueDevIt = homeUeDevs.Begin (), enbDevIt = homeEnbDevs.Begin ();
            ueDevIt != homeUeDevs.End (); ++ueDevIt, ++enbDevIt)
         {