Author: Raphael Isemann Date: 2021-09-13T09:30:31+02:00 New Revision: 4b2e38d940673e6ec01c4653eacf620e7e53ae6d
URL: https://github.com/llvm/llvm-project/commit/4b2e38d940673e6ec01c4653eacf620e7e53ae6d DIFF: https://github.com/llvm/llvm-project/commit/4b2e38d940673e6ec01c4653eacf620e7e53ae6d.diff LOG: [lldb][NFC] Cleanup EditlineHistory Added: Modified: lldb/source/Host/common/Editline.cpp Removed: ################################################################################ diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp index 5bfb612c63bdb..b55061301f4d0 100644 --- a/lldb/source/Host/common/Editline.cpp +++ b/lldb/source/Host/common/Editline.cpp @@ -205,7 +205,7 @@ class EditlineHistory { // Use static GetHistory() function to get a EditlineHistorySP to one of // these objects EditlineHistory(const std::string &prefix, uint32_t size, bool unique_entries) - : m_history(nullptr), m_event(), m_prefix(prefix), m_path() { + : m_prefix(prefix) { m_history = history_winit(); history_w(m_history, &m_event, H_SETSIZE, size); if (unique_entries) @@ -298,11 +298,15 @@ class EditlineHistory { } protected: - HistoryW *m_history; // The history object - HistEventW m_event; // The history event needed to contain all history events - std::string m_prefix; // The prefix name (usually the editline program name) - // to use when loading/saving history - std::string m_path; // Path to the history file + /// The history object. + HistoryW *m_history = nullptr; + /// The history event needed to contain all history events. + HistEventW m_event; + /// The prefix name (usually the editline program name) to use when + /// loading/saving history. + std::string m_prefix; + /// Path to the history file. + std::string m_path; }; } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits