Fix some unitialized fields in modules.
They are not used before OnLoad anyway, but Coverity will be happier.
This commit is contained in:
1 parent
c8edabb035
commit
096dc5b320
10 files changed
+31
-34
No files matched your search
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user