Fix the crashing Selection test

This commit is contained in:
Dustin L. Howett
2019-10-12 12:11:28 -07:00
parent f4daa08c19
commit 83fcb6c249
2 changed files with 1 additions and 8 deletions

View File

@@ -12,8 +12,6 @@
using namespace Microsoft::Console::Interactivity;
using namespace Microsoft::Console::Types;
std::unique_ptr<Selection> Selection::_instance;
Selection::Selection() :
_fSelectionVisible(false),
_ulSavedCursorSize(0),
@@ -32,10 +30,7 @@ Selection::Selection() :
Selection& Selection::Instance()
{
if (!_instance)
{
_instance.reset(new Selection());
}
static std::unique_ptr<Selection> _instance{ new Selection() };
return *_instance;
}

View File

@@ -84,8 +84,6 @@ private:
void _CancelMarkSelection();
void _CancelMouseSelection();
static std::unique_ptr<Selection> _instance;
// -------------------------------------------------------------------------------------------------------
// input handling (selectionInput.cpp)
public: