Commit 55ca914e authored by Lynn Garren's avatar Lynn Garren
Browse files

Merge branch 'warning-fix' into 'develop'

Fixed more compilation warnings on gcc-11 for shadowing in RandPoissonT.h...

See merge request !15
parents aee396fe dff7e9f5
18 May 2021 - G.Cosmo
* Fixed more compilation warnings on gcc-11 for shadowing in RandPoissonT.h.
==============================
28.05.21 Release CLHEP-2.4.4.2
==============================
......
......@@ -23,7 +23,7 @@
// =======================================================================
// M. Fischler - Created 26 Jan 2000
// M Fischler - put and get to/from streams 12/10/04
// M. Fischler - put and get to/from streams 12/10/04
// =======================================================================
#ifndef RandPoissonT_h
......@@ -42,8 +42,8 @@ class RandPoissonT : public RandPoisson {
public:
RandPoissonT ( HepRandomEngine& anEngine, double m=1.0 );
RandPoissonT ( HepRandomEngine* anEngine, double m=1.0 );
RandPoissonT ( HepRandomEngine& anEngine, double mean=1.0 );
RandPoissonT ( HepRandomEngine* anEngine, double mean=1.0 );
// These constructors should be used to instantiate a RandPoissonT
// distribution object defining a local engine for it.
// The static generator will be skipped using the non-static methods
......@@ -63,17 +63,17 @@ public:
// Static methods to shoot random values using the static generator
static long shoot( double m=1.0 );
static long shoot( double mean=1.0 );
static void shootArray ( const int size, long* vect, double m=1.0 );
static void shootArray ( const int size, long* vect, double mean=1.0 );
// Static methods to shoot random values using a given engine
// by-passing the static generator.
static long shoot( HepRandomEngine* anEngine, double m=1.0 );
static long shoot( HepRandomEngine* anEngine, double mean=1.0 );
static void shootArray ( HepRandomEngine* anEngine,
const int size, long* vect, double m=1.0 );
const int size, long* vect, double mean=1.0 );
// Methods using the localEngine to shoot random values, by-passing
// the static generator.
......@@ -82,10 +82,10 @@ public:
long fire( double m );
void fireArray ( const int size, long* vect );
void fireArray ( const int size, long* vect, double m);
void fireArray ( const int size, long* vect, double mean);
double operator()();
double operator()( double m );
double operator()( double mean );
std::string name() const;
HepRandomEngine & engine();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment