removed debug info and added comment

This commit is contained in:
csoler 2017-02-11 10:45:30 +01:00
parent ea82d26b75
commit 22f2edb5ad
2 changed files with 6 additions and 4 deletions

View File

@ -2138,7 +2138,9 @@ void RsGenExchange::publishMsgs()
if(createOk && validSize)
{
// empty orig msg id means this is the original
// msg
// msg.
// (csoler) Why are we doing this???
if(msg->metaData->mOrigMsgId.isNull())
{
msg->metaData->mOrigMsgId = msg->metaData->mMsgId;

View File

@ -31,7 +31,7 @@
#include <iostream>
#include <algorithm>
#define DEBUG_FORUMS
//#define DEBUG_FORUMS
#define PROGRESSBAR_MAX 100
@ -232,7 +232,7 @@ void GxsForumsFillThread::run()
if(it2 != mPostVersions.end())
{
for(uint32_t j=0;j<(*it2).size();++j)
for(int32_t j=0;j<(*it2).size();++j)
if((*it2)[j].second != sub_msg_id) // dont copy it, since it is already present at slot i
v.append((*it2)[j]) ;
@ -261,7 +261,7 @@ void GxsForumsFillThread::run()
#ifdef DEBUG_FORUMS
std::cerr << " most recent version " << (*it)[0].first << " " << (*it)[0].second << std::endl;
#endif
for(uint32_t i=1;i<(*it).size();++i)
for(int32_t i=1;i<(*it).size();++i)
{
msgs.erase((*it)[i].second) ;