Fix CppCheck in authgpg

/libretroshare/src/pqi/authgpg.cc:124: warning:
Cppcheck(uninitMemberVar): Member variable 'AuthGPG::mStoreKeyTime' is
not initialized in the constructor.
/libretroshare/src/pqi/authgpg.h:58: warning:
Cppcheck(noExplicitConstructor): Class 'AuthGPGOperation' has a
constructor with 1 argument that is not explicit.
This commit is contained in:
Phenom 2017-07-21 18:12:59 +02:00 committed by csoler
parent cd040f6501
commit 4fc7787405
2 changed files with 6 additions and 5 deletions

View File

@ -127,11 +127,12 @@ AuthGPG::AuthGPG(const std::string& path_to_public_keyring,const std::string& pa
gpgMtxService("AuthGPG-service"),
gpgMtxEngine("AuthGPG-engine"),
gpgMtxData("AuthGPG-data"),
gpgKeySelected(false)
mStoreKeyTime(0),
gpgKeySelected(false),
_force_sync_database(false),
mCount(0)
{
_force_sync_database = false ;
mCount = 0;
start("AuthGPG");
start("AuthGPG");
}
/* This function is called when retroshare is first started

View File

@ -55,7 +55,7 @@ class RsPeerDetails;
class AuthGPGOperation
{
public:
AuthGPGOperation(void *userdata)
explicit AuthGPGOperation(void *userdata)
{
m_userdata = userdata;
}