diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-07-30 10:07:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-07-30 13:59:29 +0200 |
commit | e3c8f4978a797f2b999865b7d6ebd65aa1ef93f4 (patch) | |
tree | bc0ff63ea1e69f7ca402a63c935b9344678e8e5a /include | |
parent | d12b73008a29317e779920e02ac521fd7af70017 (diff) |
Related: rhbz#1602589 rework to avoid bogus cppcheck double free warning
Change-Id: Ie673de68f39b903536c2287b8989fe6afcc9fd66
Reviewed-on: https://gerrit.libreoffice.org/58307
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/BitmapGaussianSeparableBlurFilter.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/vcl/BitmapGaussianSeparableBlurFilter.hxx b/include/vcl/BitmapGaussianSeparableBlurFilter.hxx index 6e6a3a09e6f0..c1359dab4761 100644 --- a/include/vcl/BitmapGaussianSeparableBlurFilter.hxx +++ b/include/vcl/BitmapGaussianSeparableBlurFilter.hxx @@ -12,6 +12,7 @@ #define INCLUDED_VCL_BITMAPGAUSSIANSEPARABLEBLURFILTER_HXX #include <vcl/BitmapFilter.hxx> +#include <vector> class BitmapEx; @@ -39,10 +40,11 @@ private: int aNumberOfContributions, const double* pWeights, int const* pPixels, const int* pCount); - static double* makeBlurKernel(const double radius, int& rows); + static std::vector<double> makeBlurKernel(const double radius, int& rows); static void blurContributions(const int aSize, const int aNumberOfContributions, - const double* pBlurVector, double*& pWeights, int*& pPixels, - int*& pCount); + const std::vector<double>& rBlurVector, + std::vector<double>& rWeights, std::vector<int>& rPixels, + std::vector<int>& rCounts); }; #endif |