@@ -57,11 +57,11 @@ class Command {
5757 Command (Drawable_t wid, const GCValues_t &gc);
5858 virtual ~Command ();
5959
60- virtual bool HasOperand (Drawable_t drawable)const ;
61- virtual bool IsGraphicsCommand ()const ;// By-default - false.
60+ virtual bool HasOperand (Drawable_t drawable) const ;
61+ virtual bool IsGraphicsCommand () const ;// By-default - false.
6262
63- virtual void Execute ()const = 0 ;
64- virtual void Execute (CGContextRef /* ctx*/ )const ;
63+ virtual void Execute () const = 0 ;
64+ virtual void Execute (CGContextRef /* ctx*/ ) const ;
6565
6666 void setView (NSView *v)
6767 {
@@ -79,8 +79,8 @@ class DrawLine : public Command {
7979
8080public:
8181 DrawLine (Drawable_t wid, const GCValues_t &gc, const Point &p1, const Point &p2);
82- void Execute ()const ;
83- bool IsGraphicsCommand ()const
82+ void Execute () const override ;
83+ bool IsGraphicsCommand () const override
8484 {
8585 return true ;
8686 }
@@ -92,8 +92,8 @@ class DrawSegments : public Command {
9292
9393public:
9494 DrawSegments (Drawable_t wid, const GCValues_t &gc, const Segment_t *segments, Int_t nSegments);
95- void Execute ()const ;
96- bool IsGraphicsCommand ()const
95+ void Execute () const override ;
96+ bool IsGraphicsCommand () const override
9797 {
9898 return true ;
9999 }
@@ -105,8 +105,8 @@ class ClearArea : public Command {
105105
106106public:
107107 ClearArea (Window_t wid, const Rectangle_t &area);
108- void Execute ()const ;
109- bool IsGraphicsCommand ()const
108+ void Execute () const override ;
109+ bool IsGraphicsCommand () const override
110110 {
111111 return true ;
112112 }
@@ -121,13 +121,13 @@ class CopyArea : public Command {
121121public:
122122 CopyArea (Drawable_t src, Drawable_t dst, const GCValues_t &gc, const Rectangle_t &area, const Point &dstPoint);
123123
124- bool HasOperand (Drawable_t drawable)const ;
125- bool IsGraphicsCommand ()const
124+ bool HasOperand (Drawable_t drawable) const override ;
125+ bool IsGraphicsCommand () const override
126126 {
127127 return true ;
128128 }
129129
130- void Execute ()const ;
130+ void Execute () const override ;
131131
132132};
133133
@@ -139,12 +139,12 @@ class DrawString : public Command {
139139public:
140140 DrawString (Drawable_t wid, const GCValues_t &gc, const Point &point, const std::string &text);
141141
142- bool IsGraphicsCommand ()const
142+ bool IsGraphicsCommand () const override
143143 {
144144 return true ;
145145 }
146146
147- void Execute ()const ;
147+ void Execute () const override ;
148148};
149149
150150class FillRectangle : public Command {
@@ -154,12 +154,12 @@ class FillRectangle : public Command {
154154public:
155155 FillRectangle (Drawable_t wid, const GCValues_t &gc, const Rectangle_t &rectangle);
156156
157- bool IsGraphicsCommand ()const
157+ bool IsGraphicsCommand () const override
158158 {
159159 return true ;
160160 }
161161
162- void Execute ()const ;
162+ void Execute () const override ;
163163};
164164
165165class FillPolygon : public Command {
@@ -169,12 +169,12 @@ class FillPolygon : public Command {
169169public:
170170 FillPolygon (Drawable_t wid, const GCValues_t &gc, const Point_t *points, Int_t nPoints);
171171
172- bool IsGraphicsCommand ()const
172+ bool IsGraphicsCommand () const override
173173 {
174174 return true ;
175175 }
176176
177- void Execute ()const ;
177+ void Execute () const override ;
178178};
179179
180180class DrawRectangle : public Command {
@@ -184,12 +184,12 @@ class DrawRectangle : public Command {
184184public:
185185 DrawRectangle (Drawable_t wid, const GCValues_t &gc, const Rectangle_t &rectangle);
186186
187- bool IsGraphicsCommand ()const
187+ bool IsGraphicsCommand () const override
188188 {
189189 return true ;
190190 }
191191
192- void Execute ()const ;
192+ void Execute () const override ;
193193};
194194
195195class UpdateWindow : public Command {
@@ -199,18 +199,18 @@ class UpdateWindow : public Command {
199199public:
200200 UpdateWindow (QuartzView *view);
201201
202- bool IsGraphicsCommand ()const
202+ bool IsGraphicsCommand () const override
203203 {
204204 return true ;
205205 }
206206
207- void Execute ()const ;
207+ void Execute () const override ;
208208};
209209
210210class DeletePixmap : public Command {
211211public:
212212 DeletePixmap (Pixmap_t pixmap);
213- void Execute ()const ;
213+ void Execute () const override ;
214214};
215215
216216// Set of 'xor' operations, required by TCanvas and ExecuteEvent's machinery.
@@ -222,8 +222,8 @@ class DrawBoxXor : public Command {
222222public:
223223 DrawBoxXor (Window_t windowID, const Point &p1, const Point &p2);
224224
225- void Execute ()const ;
226- void Execute (CGContextRef ctx)const ;
225+ void Execute () const override {}
226+ void Execute (CGContextRef ctx) const override ;
227227};
228228
229229class DrawLineXor : public Command {
@@ -234,8 +234,8 @@ class DrawLineXor : public Command {
234234public:
235235 DrawLineXor (Window_t windowID, const Point &p1, const Point &p2);
236236
237- void Execute () const {}
238- void Execute (CGContextRef ctx) const ;
237+ void Execute () const override {}
238+ void Execute (CGContextRef ctx) const override ;
239239
240240 Point start () const { return fP1; }
241241 Point end () const { return fP2; }
@@ -252,8 +252,8 @@ class DrawPolyLineXor : public Command {
252252 Command (windowID, GCValues_t ()), fAtt (att) {}
253253 void setPoints (Int_t n, TPoint *xy);
254254
255- void Execute () const {}
256- void Execute (CGContextRef ctx) const ;
255+ void Execute () const override {}
256+ void Execute (CGContextRef ctx) const override ;
257257};
258258
259259
@@ -268,8 +268,8 @@ class DrawMarkerXor : public Command {
268268 Command (windowID, GCValues_t ()), fAtt (att) {}
269269 void setPoints (Int_t n, TPoint *xy);
270270
271- void Execute () const {}
272- void Execute (CGContextRef ctx) const ;
271+ void Execute () const override {}
272+ void Execute (CGContextRef ctx) const override ;
273273};
274274
275275
0 commit comments