mirror of
https://github.com/microsoft/GSL.git
synced 2025-11-16 15:29:32 +01:00
Fix some corechecker warnings (#470)
* Improve const correctness in string_span * Improve const correctness in bounds_tests.cpp and byte_tests.cpp * Improve const correctness in span_tests.cpp * Improve const correctness in utils_tests.cpp * Use gsl::owner for dynamically allocated memory in string_span_tests.cpp * Improve const correctness in string_span_tests.cpp * Improve const correctness for strided_span_tests.cpp
This commit is contained in:
@@ -92,7 +92,7 @@ SUITE(utils_tests)
|
||||
TEST(narrow)
|
||||
{
|
||||
int n = 120;
|
||||
char c = narrow<char>(n);
|
||||
const char c = narrow<char>(n);
|
||||
CHECK(c == 120);
|
||||
|
||||
n = 300;
|
||||
|
||||
Reference in New Issue
Block a user