fixed memory corruption bug in GxsForumModel

This commit is contained in:
csoler 2018-11-19 23:33:19 +01:00
parent dbeb97c0e9
commit d8f9559b0e
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ RsGxsForumModel::RsGxsForumModel(QObject *parent)
mPosts[i].prow = i-1;
RsMsgMetaData meta;
meta.mMsgName = "message " + (QString::number(i).toStdString()) ;
meta.mMsgName = std::string("message ") + QString::number(i).toStdString() ;
mPosts[i].meta_versions.push_back(meta);
}
@ -44,7 +44,7 @@ RsGxsForumModel::RsGxsForumModel(QObject *parent)
mPosts[N+1].prow = 0;
RsMsgMetaData meta;
meta.mMsgName = "message " + (QString::number(N+1).toStdString()) ;
meta.mMsgName = std::string("message ") + QString::number(N+1).toStdString() ;
mPosts[N+1].meta_versions.push_back(meta);
}

View File

@ -1,4 +1,4 @@
#ifdef SUSPENDED_CODE
#ifndef SUSPENDED_CODE
#include "retroshare/rsgxsifacetypes.h"
#else
#include <string>