Initialize variable to avoid a warning in wxCaret unit test
Always initialize the caret pointer in the test added in 88f808e303
(Add
a unit test for wxCaret::Create(), 2020-10-01) to avoid a MSVS warning.
This commit is contained in:
parent
98ea7b49c7
commit
fa1b1e700b
@ -135,7 +135,7 @@ TEST_CASE_METHOD(WindowTestCase, "Window::Mouse", "[window]")
|
||||
#if wxUSE_CARET
|
||||
CHECK(!m_window->GetCaret());
|
||||
|
||||
wxCaret* caret;
|
||||
wxCaret* caret = NULL;
|
||||
|
||||
// Try creating the caret in two different, but normally equivalent, ways.
|
||||
SECTION("Caret 1-step")
|
||||
|
Loading…
Reference in New Issue
Block a user