Skip to content

Commit d857e8a

Browse files
committed
[hist] Mark not implemented methods as delete
1 parent eb1acd0 commit d857e8a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

hist/hist/inc/TGraphSmooth.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
class TGraphSmooth: public TNamed {
3535

3636
private:
37-
TGraphSmooth(const TGraphSmooth&); // Not implented
38-
TGraphSmooth& operator=(const TGraphSmooth&); // Not implented
37+
TGraphSmooth(const TGraphSmooth&) = delete;
38+
TGraphSmooth& operator=(const TGraphSmooth&) = delete;
3939

4040
protected:
4141
Int_t fNin; ///< Number of input points
@@ -48,7 +48,6 @@ class TGraphSmooth: public TNamed {
4848
public :
4949
TGraphSmooth();
5050
TGraphSmooth(const char *name);
51-
// TGraphSmooth(const TGraphSmooth &smoothReg); //??
5251
~TGraphSmooth() override;
5352

5453
TGraph *Approx(TGraph *grin, Option_t *option="linear", Int_t nout=50, Double_t *xout=nullptr,

hist/hist/inc/TKDE.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ class TKDE : public TNamed {
177177

178178
private:
179179

180-
TKDE(TKDE& kde); // Disallowed copy constructor
181-
TKDE operator=(TKDE& kde); // Disallowed assign operator
180+
TKDE(TKDE& kde) = delete;
181+
TKDE operator=(TKDE& kde) = delete;
182182

183183
// Kernel function pointer. It is managed by class for internal kernels or externally for user defined kernels
184184
typedef ROOT::Math::IBaseFunctionOneDim* KernelFunction_Ptr;

0 commit comments

Comments
 (0)