Fix Clang warnings: field 'mPassword' will be initialized after field

'mPrevIsBad'

warning: field 'mPassword' will be initialized after field 'mPrevIsBad'
[-Wreorder]
This commit is contained in:
Phenom 2017-04-18 11:56:25 +02:00 committed by csoler
parent be9f126898
commit 6e42cf4200
2 changed files with 3 additions and 3 deletions

@ -25,8 +25,8 @@ RsControlModule::RsControlModule(int argc, char **argv, StateTokenServer* sts, A
mRunState(WAITING_INIT),
mAutoLoginNextTime(false),
mWantPassword(false),
mPassword(""),
mPrevIsBad(false)
mPrevIsBad(false),
mPassword("")
{
mStateToken = sts->getNewToken();
this->argc = argc;

@ -77,7 +77,7 @@ private:
// to notify that a password callback is waiting
// to answer the request, clear the flag and set the password
bool mWantPassword;
bool mPrevIsBad;
bool mPrevIsBad ;
std::string mTitle;
std::string mKeyName;
std::string mPassword;