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

View file

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

View file

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