Browse Source

python: properly initialize all members even if unused.

next
Vladimír Vondruš 2 years ago
parent
commit
67d78789cd
  1. 2
      src/Corrade/Containers/StridedArrayViewPythonBindings.h

2
src/Corrade/Containers/StridedArrayViewPythonBindings.h

@ -74,7 +74,7 @@ template<unsigned dimensions, class T> class PyStridedArrayView: public StridedA
/* Null function pointers should be okay as it shouldn't ever get to
them -- IndexError gets fired first. Not really sure about the
format, choosing bytes for safety. */
/*implicit*/ PyStridedArrayView(): format{"B"}, getitem{} {}
/*implicit*/ PyStridedArrayView(): format{"B"}, getitem{}, setitem{} {}
template<class U> explicit PyStridedArrayView(const StridedArrayView<dimensions, U>& view): PyStridedArrayView{view, Implementation::pythonFormatString<typename std::decay<U>::type>(), sizeof(U)} {}

Loading…
Cancel
Save