mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
ef5e218859
commit
7884925217
@ -188,7 +188,7 @@ class RsConfigNetStatus
|
||||
DHTActive = uPnPActive = netLocalOk = netUpnpOk = netDhtOk = netStunOk = netExtAddressOk = false ;
|
||||
uPnPState = 0 ;
|
||||
//DHTPeers = 0 ;
|
||||
|
||||
netDhtNetSize = netDhtRsNetSize = 0;
|
||||
}
|
||||
|
||||
RsPeerId ownId;
|
||||
|
@ -41,6 +41,7 @@ public:
|
||||
RsGroupMetaData()
|
||||
{
|
||||
mGroupFlags = 0;
|
||||
mSignFlags = 0;
|
||||
mSubscribeFlags = 0;
|
||||
|
||||
mPop = 0;
|
||||
|
@ -159,7 +159,7 @@ class RsIdentityDetails
|
||||
public:
|
||||
RsIdentityDetails()
|
||||
:mIsOwnId(false), mPgpLinked(false), mPgpKnown(false),
|
||||
mReputation() { return; }
|
||||
mReputation(), mLastUsageTS(0) { return; }
|
||||
|
||||
RsGxsId mId;
|
||||
|
||||
|
@ -175,7 +175,7 @@ class MessageInfo_v2
|
||||
class MessageInfo
|
||||
{
|
||||
public:
|
||||
MessageInfo() {}
|
||||
MessageInfo(): msgflags(0), size(0), count(0), ts(0) {}
|
||||
std::string msgId;
|
||||
|
||||
RsPeerId rspeerid_srcId;
|
||||
@ -212,7 +212,7 @@ public:
|
||||
class MsgInfoSummary
|
||||
{
|
||||
public:
|
||||
MsgInfoSummary() {}
|
||||
MsgInfoSummary(): msgflags(0), count(0), ts(0) {}
|
||||
|
||||
std::string msgId;
|
||||
RsPeerId srcId;
|
||||
@ -344,7 +344,7 @@ class ChatLobbyInvite
|
||||
class VisibleChatLobbyRecord
|
||||
{
|
||||
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
|
||||
std::string lobby_name ; // name to use for this lobby
|
||||
|
@ -115,7 +115,10 @@ class RsPostedPost
|
||||
mDownVotes = 0;
|
||||
mComments = 0;
|
||||
mHaveVoted = false;
|
||||
return;
|
||||
|
||||
mHotScore = 0;
|
||||
mTopScore = 0;
|
||||
mNewScore = 0;
|
||||
}
|
||||
|
||||
bool calculateScores(time_t ref_time);
|
||||
|
@ -160,7 +160,8 @@ class FileInfo
|
||||
/* old BaseInfo Entries */
|
||||
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 */
|
||||
|
||||
FileStorageFlags storage_permission_flags; // Combination of the four RS_DIR_FLAGS_*. Updated when the file is a local stored file.
|
||||
|
Loading…
Reference in New Issue
Block a user