Skip to content
Snippets Groups Projects
Commit 658f75cf authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

mv constant to prevent error in clang-tidy

parent 03fd434b
No related branches found
No related tags found
1 merge request!2184cleanup as suggested by clang-tidy
......@@ -121,7 +121,6 @@ Checks: '*,
-bugprone-misplaced-widening-cast,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-optin.cplusplus.VirtualCall,
-clang-diagnostic-error,
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-pro-type-static-cast-downcast,
-google-runtime-references,
......
......@@ -27,9 +27,6 @@
namespace {
auto const seed = 123;
auto urbg = std::mt19937(seed);
PyObject* npExport(const Frame& frame, const std::vector<double>& flatData)
{
if (flatData.empty())
......@@ -429,6 +426,9 @@ Datafield Datafield::flat() const
Datafield Datafield::noisy(double prefactor, double minimum) const
{
auto const seed = 123;
static auto urbg = std::mt19937(seed);
std::vector<double> outval(size());
std::vector<double> errval(size());
for (size_t i = 0; i < size(); ++i) {
......
......@@ -41,7 +41,7 @@ public:
std::string className() const final { return "ConvolutionDetectorResolution"; }
//! Convolve given intensities with the encapsulated resolution.
void execDetectorResolution(Datafield* p_intensity_map) const override;
void execDetectorResolution(Datafield* df) const override;
const IResolutionFunction2D* getResolutionFunction2D() const;
......@@ -52,8 +52,8 @@ protected:
private:
void setResolutionFunction(const IResolutionFunction2D& resFunc);
void apply1dConvolution(Datafield* p_intensity_map) const;
void apply2dConvolution(Datafield* p_intensity_map) const;
void apply1dConvolution(Datafield* df) const;
void apply2dConvolution(Datafield* df) const;
double getIntegratedPDF1d(double x, double step) const;
double getIntegratedPDF2d(double x, double step_x, double y, double step_y) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment