mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
style: clang-tidy: modernize-use-auto
This commit is contained in:
committed by
Henry Schreiner
parent
b491b465c7
commit
ce88e940ce
@@ -200,7 +200,7 @@ TEST_SUBMODULE(sequences_and_iterators, m) {
|
||||
size_t start, stop, step, slicelength;
|
||||
if (!slice.compute(s.size(), &start, &stop, &step, &slicelength))
|
||||
throw py::error_already_set();
|
||||
Sequence *seq = new Sequence(slicelength);
|
||||
auto *seq = new Sequence(slicelength);
|
||||
for (size_t i = 0; i < slicelength; ++i) {
|
||||
(*seq)[i] = s[start]; start += step;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user