Skip to content

Commit 9bbd4d5

Browse files
committed
Use override syntax for TImage
1 parent c2ec1cb commit 9bbd4d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

graf2d/graf/inc/TAttImage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class TImagePalette : public TObject {
5353
static TImagePalette* Create(Option_t* opts);
5454
static TImagePalette* CreateCOLPalette(Int_t nContours);
5555

56-
ClassDef(TImagePalette,2) // Color Palette for value -> color conversion
56+
ClassDefOverride(TImagePalette,2) // Color Palette for value -> color conversion
5757
};
5858

5959
class TAttImage {

graf2d/graf/inc/TImage.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ friend TImage operator/(const TImage &i1, const TImage &s2);
108108
virtual ~TImage() { }
109109

110110
// Cloning
111-
virtual TObject *Clone(const char *) const { return 0; }
111+
TObject *Clone(const char *) const override { return nullptr; }
112112

113113
// Input / output
114114
virtual void ReadImage(const char * /*file*/, EImageFileTypes /*type*/ = TImage::kUnknown) {}
@@ -255,9 +255,9 @@ friend TImage operator/(const TImage &i1, const TImage &s2);
255255
TImage &operator+=(const TImage &i) { Append(&i, "+"); return *this; }
256256
TImage &operator/=(const TImage &i) { Append(&i, "/"); return *this; }
257257

258-
virtual void ls(Option_t *option="") const;
258+
void ls(Option_t *option="") const override;
259259

260-
ClassDef(TImage,1) // Abstract image class
260+
ClassDefOverride(TImage,1) // Abstract image class
261261
};
262262

263263

0 commit comments

Comments
 (0)