mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 07:47:03 -05:00
fixed memory corruption bug in GxsForumModel
This commit is contained in:
parent
dbeb97c0e9
commit
d8f9559b0e
@ -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);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#ifdef SUSPENDED_CODE
|
||||
#ifndef SUSPENDED_CODE
|
||||
#include "retroshare/rsgxsifacetypes.h"
|
||||
#else
|
||||
#include <string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user