diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-02-17 20:51:01 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-02-18 09:07:25 -0800 |
commit | e4a03b26898e9ca5917a425fc4b089bf5ba19272 (patch) | |
tree | 75b5b1b6fb7f498ae999d4b28a69a9c0a846d73f /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 47b749e5be2190d1ccb214fd6364da462a9098cf (diff) | |
download | llvm-e4a03b26898e9ca5917a425fc4b089bf5ba19272.zip llvm-e4a03b26898e9ca5917a425fc4b089bf5ba19272.tar.gz llvm-e4a03b26898e9ca5917a425fc4b089bf5ba19272.tar.bz2 |
[lldb] Default initialize CommandOptions fields (NFC)
Make sure all fields are default initialized to the same values.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index ebb84bc..a828ba1 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -1480,7 +1480,7 @@ protected: std::string m_class_name; std::string m_funct_name; std::string m_short_help; - bool m_overwrite; + bool m_overwrite = false; ScriptedCommandSynchronicity m_synchronicity = eScriptedCommandSynchronicitySynchronous; }; @@ -1637,8 +1637,9 @@ protected: std::string m_cmd_name; CommandObjectMultiword *m_container = nullptr; std::string m_short_help; - bool m_overwrite; - ScriptedCommandSynchronicity m_synchronicity; + bool m_overwrite = false; + ScriptedCommandSynchronicity m_synchronicity = + eScriptedCommandSynchronicitySynchronous; }; // CommandObjectCommandsScriptList |