Fix some unitialized fields in modules.

They are not used before OnLoad anyway, but Coverity will be happier.
This commit is contained in:
Alexey Sokolov
2015-10-30 14:52:51 +00:00
parent c8edabb035
commit 096dc5b320
10 changed files with 31 additions and 34 deletions

View File

@@ -19,7 +19,7 @@
using std::stringstream;
class CNotesMod : public CModule {
bool bShowNotesOnLogin;
bool m_bShowNotesOnLogin{};
void ListCommand(const CString &sLine) {
ListNotes();
@@ -85,14 +85,14 @@ public:
virtual ~CNotesMod() {}
virtual bool OnLoad(const CString& sArgs, CString& sMessage) override {
bShowNotesOnLogin = !sArgs.Equals("-disableNotesOnLogin");
m_bShowNotesOnLogin = !sArgs.Equals("-disableNotesOnLogin");
return true;
}
virtual CString GetWebMenuTitle() override { return "Notes"; }
virtual void OnClientLogin() override {
if (bShowNotesOnLogin) {
if (m_bShowNotesOnLogin) {
ListNotes(true);
}
}