Skip to content

Commit

Permalink
PERF: PyBuffer importImageFilterWillOwnTheBuffer is constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Apr 16, 2020
1 parent 60afb52 commit a306f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Bridge/NumPy/include/itkPyBuffer.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ PyBuffer<TImage>::_GetImageViewFromArray(PyObject * arr, PyObject * shape, PyObj
using InternalPixelType = typename TImage::InternalPixelType;
using ImporterType = ImportImageContainer<SizeValueType, InternalPixelType>;
typename ImporterType::Pointer importer = ImporterType::New();
const bool importImageFilterWillOwnTheBuffer = false;
constexpr bool importImageFilterWillOwnTheBuffer = false;
InternalPixelType * data = (InternalPixelType *)buffer;
importer->SetImportPointer(data, numberOfPixels, importImageFilterWillOwnTheBuffer);

Expand Down

0 comments on commit a306f50

Please sign in to comment.