Index: samplecode/SamplePathClip.cpp |
diff --git a/samplecode/SamplePathClip.cpp b/samplecode/SamplePathClip.cpp |
index ab7ed5d0fc6a9238359fd0af9232897c470abfc1..494debfb4fe73b9843442d8075dbd47f78a4140c 100644 |
--- a/samplecode/SamplePathClip.cpp |
+++ b/samplecode/SamplePathClip.cpp |
@@ -37,7 +37,7 @@ public: |
protected: |
// overrides from SkEventSink |
- virtual bool onQuery(SkEvent* evt) { |
+ bool onQuery(SkEvent* evt) override { |
if (SampleCode::TitleQ(*evt)) { |
SampleCode::TitleR(evt, "PathClip"); |
return true; |
@@ -45,7 +45,7 @@ protected: |
return this->INHERITED::onQuery(evt); |
} |
- virtual void onDrawContent(SkCanvas* canvas) { |
+ void onDrawContent(SkCanvas* canvas) override { |
SkRect oval = fOval; |
oval.offset(fCenter.fX - oval.centerX(), fCenter.fY - oval.centerY()); |
@@ -74,7 +74,7 @@ protected: |
return new Click(this); |
} |
- virtual bool onClick(Click* click) { |
+ bool onClick(Click* click) override { |
fCenter.set(click->fCurr.fX, click->fCurr.fY); |
this->inval(NULL); |
return false; |