From 0b5434583e0de69792af90d6e87e559e8108ea19 Mon Sep 17 00:00:00 2001 From: Carlos Zamora Date: Wed, 22 Jun 2022 13:56:49 -0700 Subject: [PATCH] Fix a few method signatures --- src/cascadia/TerminalControl/ControlCore.h | 2 +- src/cascadia/TerminalCore/Terminal.hpp | 2 +- src/cascadia/TerminalCore/TerminalSelection.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cascadia/TerminalControl/ControlCore.h b/src/cascadia/TerminalControl/ControlCore.h index 701dc2d3118..2988d57a263 100644 --- a/src/cascadia/TerminalControl/ControlCore.h +++ b/src/cascadia/TerminalControl/ControlCore.h @@ -80,7 +80,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation void SendInput(const winrt::hstring& wstr); void PasteText(const winrt::hstring& hstr); - bool CopySelectionToClipboard(bool singleLine, const Windows::Foundation::IReference& formats, bool clearSelection = false); + bool CopySelectionToClipboard(bool singleLine, const Windows::Foundation::IReference& formats, bool clearSelection = true); void SelectAll(); bool ToggleBlockSelection(); void ToggleMarkMode(); diff --git a/src/cascadia/TerminalCore/Terminal.hpp b/src/cascadia/TerminalCore/Terminal.hpp index a56356b5572..8a2b507977b 100644 --- a/src/cascadia/TerminalCore/Terminal.hpp +++ b/src/cascadia/TerminalCore/Terminal.hpp @@ -255,7 +255,7 @@ class Microsoft::Terminal::Core::Terminal final : void SetBlockSelection(const bool isEnabled) noexcept; void UpdateSelection(SelectionDirection direction, SelectionExpansion mode, ControlKeyStates mods); void SelectAll(); - bool IsInQuickEditMode() const; + const bool IsInQuickEditMode() const noexcept; bool IsInMarkMode() const; void ToggleMarkMode(); diff --git a/src/cascadia/TerminalCore/TerminalSelection.cpp b/src/cascadia/TerminalCore/TerminalSelection.cpp index d37c46ad353..466c66a8ad6 100644 --- a/src/cascadia/TerminalCore/TerminalSelection.cpp +++ b/src/cascadia/TerminalCore/TerminalSelection.cpp @@ -273,7 +273,7 @@ void Terminal::SetBlockSelection(const bool isEnabled) noexcept _blockSelection = isEnabled; } -bool Terminal::IsInQuickEditMode() const +const bool Terminal::IsInQuickEditMode() const noexcept { return _quickEditMode; }