mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 06:02:41 -04:00
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:
parent
cd040f6501
commit
4fc7787405
2 changed files with 6 additions and 5 deletions
|
@ -127,10 +127,11 @@ AuthGPG::AuthGPG(const std::string& path_to_public_keyring,const std::string& pa
|
||||||
gpgMtxService("AuthGPG-service"),
|
gpgMtxService("AuthGPG-service"),
|
||||||
gpgMtxEngine("AuthGPG-engine"),
|
gpgMtxEngine("AuthGPG-engine"),
|
||||||
gpgMtxData("AuthGPG-data"),
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ class RsPeerDetails;
|
||||||
class AuthGPGOperation
|
class AuthGPGOperation
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AuthGPGOperation(void *userdata)
|
explicit AuthGPGOperation(void *userdata)
|
||||||
{
|
{
|
||||||
m_userdata = userdata;
|
m_userdata = userdata;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue