Fix compilation of wxGrid unit tests with VC10 (VS2010)
VC10 does not support range-based for-loops, they were only introduced in VC11 (VS2012): https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2012/hh409293(v=vs.110) Closes https://github.com/wxWidgets/wxWidgets/pull/1863
This commit is contained in:
committed by
Vadim Zeitlin
parent
442b82a6c5
commit
0b54f944bc
@@ -554,7 +554,7 @@ TEST_CASE_METHOD(GridTestCase, "Grid::SelectionRange", "[grid]")
|
||||
REQUIRE( sel.begin() != sel.end() );
|
||||
CHECK( *sel.begin() == wxGridBlockCoords(1, 0, 3, 1) );
|
||||
|
||||
#if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(10)
|
||||
#if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(11)
|
||||
m_grid->SelectBlock(4, 0, 7, 1, true);
|
||||
int index = 0;
|
||||
for ( const wxGridBlockCoords& block : m_grid->GetSelectedBlocks() )
|
||||
|
Reference in New Issue
Block a user