diff options
Diffstat (limited to 'contrib/llvm-project/lldb/source/Commands/CommandObjectGUI.cpp')
-rw-r--r-- | contrib/llvm-project/lldb/source/Commands/CommandObjectGUI.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/llvm-project/lldb/source/Commands/CommandObjectGUI.cpp b/contrib/llvm-project/lldb/source/Commands/CommandObjectGUI.cpp index 3f45a26de228..86c47a2f0634 100644 --- a/contrib/llvm-project/lldb/source/Commands/CommandObjectGUI.cpp +++ b/contrib/llvm-project/lldb/source/Commands/CommandObjectGUI.cpp @@ -22,7 +22,7 @@ CommandObjectGUI::CommandObjectGUI(CommandInterpreter &interpreter) : CommandObjectParsed(interpreter, "gui", "Switch into the curses based GUI mode.", "gui") {} -CommandObjectGUI::~CommandObjectGUI() {} +CommandObjectGUI::~CommandObjectGUI() = default; bool CommandObjectGUI::DoExecute(Args &args, CommandReturnObject &result) { #if LLDB_ENABLE_CURSES @@ -39,11 +39,9 @@ bool CommandObjectGUI::DoExecute(Args &args, CommandReturnObject &result) { result.SetStatus(eReturnStatusSuccessFinishResult); } else { result.AppendError("the gui command requires an interactive terminal."); - result.SetStatus(eReturnStatusFailed); } } else { result.AppendError("the gui command takes no arguments."); - result.SetStatus(eReturnStatusFailed); } return true; #else |