Small changes here and there
diff --git a/model/sync-app-data-fetch.cc b/model/sync-app-data-fetch.cc
index 76b6119..43e089b 100644
--- a/model/sync-app-data-fetch.cc
+++ b/model/sync-app-data-fetch.cc
@@ -28,16 +28,17 @@
namespace Sync
{
-void AppDataFetch::fetch(string prefix, uint32_t startSeq, uint32_t endSeq)
+void
+AppDataFetch::fetch (const string &prefix, uint32_t startSeq, uint32_t endSeq)
{
for (uint32_t i = startSeq; i <= endSeq; i++)
{
if (i == 0)
continue;
- string interestName = prefix;
- interestName += i;
- m_ccnxHandle->sendInterest(interestName, m_dataCallback);
+ ostringstream interestName;
+ interestName << prefix << "/" << i;
+ m_ccnxHandle->sendInterest (interestName.str (), m_dataCallback);
}
}
-}
\ No newline at end of file
+}