Index: samplecode/SamplePatch.cpp |
diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp |
index ac500bf82893cb5263e2747ceb7d249b5e4db312..9ada9ef68c0efeac68cd553d198ddc41812b6f74 100644 |
--- a/samplecode/SamplePatch.cpp |
+++ b/samplecode/SamplePatch.cpp |
@@ -262,7 +262,7 @@ public: |
protected: |
// overrides from SkEventSink |
- virtual bool onQuery(SkEvent* evt) { |
+ bool onQuery(SkEvent* evt) override { |
if (SampleCode::TitleQ(*evt)) { |
SampleCode::TitleR(evt, "Patch"); |
return true; |
@@ -270,7 +270,7 @@ protected: |
return this->INHERITED::onQuery(evt); |
} |
- virtual void onDrawContent(SkCanvas* canvas) { |
+ void onDrawContent(SkCanvas* canvas) override { |
const int nu = 10; |
const int nv = 10; |
@@ -334,8 +334,7 @@ protected: |
return SkPoint::Length(pt.fX - x, pt.fY - y) < SkIntToScalar(5); |
} |
- virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, |
- unsigned modi) override { |
+ SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned modi) override { |
x -= DX; |
y -= DY; |
for (size_t i = 0; i < SK_ARRAY_COUNT(fPts); i++) { |
@@ -346,7 +345,7 @@ protected: |
return this->INHERITED::onFindClickHandler(x, y, modi); |
} |
- virtual bool onClick(Click* click) { |
+ bool onClick(Click* click) override { |
fPts[((PtClick*)click)->fIndex].set(click->fCurr.fX - DX, click->fCurr.fY - DY); |
this->inval(NULL); |
return true; |