Skip to content

Commit a306f50

Browse files
committed
PERF: PyBuffer importImageFilterWillOwnTheBuffer is constexpr
1 parent 60afb52 commit a306f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Bridge/NumPy/include/itkPyBuffer.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ PyBuffer<TImage>::_GetImageViewFromArray(PyObject * arr, PyObject * shape, PyObj
158158
using InternalPixelType = typename TImage::InternalPixelType;
159159
using ImporterType = ImportImageContainer<SizeValueType, InternalPixelType>;
160160
typename ImporterType::Pointer importer = ImporterType::New();
161-
const bool importImageFilterWillOwnTheBuffer = false;
161+
constexpr bool importImageFilterWillOwnTheBuffer = false;
162162
InternalPixelType * data = (InternalPixelType *)buffer;
163163
importer->SetImportPointer(data, numberOfPixels, importImageFilterWillOwnTheBuffer);
164164

0 commit comments

Comments
 (0)