let interface classes initialise their integers

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8533 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-06-19 12:47:38 +00:00
parent ef5e218859
commit 7884925217
6 changed files with 12 additions and 7 deletions

View file

@ -188,7 +188,7 @@ class RsConfigNetStatus
DHTActive = uPnPActive = netLocalOk = netUpnpOk = netDhtOk = netStunOk = netExtAddressOk = false ; DHTActive = uPnPActive = netLocalOk = netUpnpOk = netDhtOk = netStunOk = netExtAddressOk = false ;
uPnPState = 0 ; uPnPState = 0 ;
//DHTPeers = 0 ; //DHTPeers = 0 ;
netDhtNetSize = netDhtRsNetSize = 0;
} }
RsPeerId ownId; RsPeerId ownId;

View file

@ -41,6 +41,7 @@ public:
RsGroupMetaData() RsGroupMetaData()
{ {
mGroupFlags = 0; mGroupFlags = 0;
mSignFlags = 0;
mSubscribeFlags = 0; mSubscribeFlags = 0;
mPop = 0; mPop = 0;

View file

@ -159,7 +159,7 @@ class RsIdentityDetails
public: public:
RsIdentityDetails() RsIdentityDetails()
:mIsOwnId(false), mPgpLinked(false), mPgpKnown(false), :mIsOwnId(false), mPgpLinked(false), mPgpKnown(false),
mReputation() { return; } mReputation(), mLastUsageTS(0) { return; }
RsGxsId mId; RsGxsId mId;

View file

@ -175,7 +175,7 @@ class MessageInfo_v2
class MessageInfo class MessageInfo
{ {
public: public:
MessageInfo() {} MessageInfo(): msgflags(0), size(0), count(0), ts(0) {}
std::string msgId; std::string msgId;
RsPeerId rspeerid_srcId; RsPeerId rspeerid_srcId;
@ -212,7 +212,7 @@ public:
class MsgInfoSummary class MsgInfoSummary
{ {
public: public:
MsgInfoSummary() {} MsgInfoSummary(): msgflags(0), count(0), ts(0) {}
std::string msgId; std::string msgId;
RsPeerId srcId; RsPeerId srcId;
@ -344,7 +344,7 @@ class ChatLobbyInvite
class VisibleChatLobbyRecord class VisibleChatLobbyRecord
{ {
public: public:
VisibleChatLobbyRecord() { total_number_of_peers = 0 ; } VisibleChatLobbyRecord(): lobby_id(0), total_number_of_peers(0), last_report_time(0){}
ChatLobbyId lobby_id ; // unique id of the lobby ChatLobbyId lobby_id ; // unique id of the lobby
std::string lobby_name ; // name to use for this lobby std::string lobby_name ; // name to use for this lobby

View file

@ -115,7 +115,10 @@ class RsPostedPost
mDownVotes = 0; mDownVotes = 0;
mComments = 0; mComments = 0;
mHaveVoted = false; mHaveVoted = false;
return;
mHotScore = 0;
mTopScore = 0;
mNewScore = 0;
} }
bool calculateScores(time_t ref_time); bool calculateScores(time_t ref_time);

View file

@ -160,7 +160,8 @@ class FileInfo
/* old BaseInfo Entries */ /* old BaseInfo Entries */
public: public:
FileInfo() : mId(0) { return; } FileInfo() : mId(0), searchId(0), size(0), avail(0), rank(0), age(0), queue_position(0),
transfered(0), tfRate(0), downloadStatus(0), priority(SPEED_NORMAL), lastTS(0){}
// RsCertId id; /* key for matching everything */ // RsCertId id; /* key for matching everything */
FileStorageFlags storage_permission_flags; // Combination of the four RS_DIR_FLAGS_*. Updated when the file is a local stored file. FileStorageFlags storage_permission_flags; // Combination of the four RS_DIR_FLAGS_*. Updated when the file is a local stored file.