Fix up all the easy virtual ... SK_OVERRIDE cases.
This fixes every case where virtual and SK_OVERRIDE were on the same line,
which should be the bulk of cases. We'll have to manually clean up the rest
over time unless I level up in regexes.
for f in (find . -type f); perl -p -i -e 's/virtual (.*)SK_OVERRIDE/\1SK_OVERRIDE/g' $f; end
BUG=skia:
Review URL: https://codereview.chromium.org/806653007
diff --git a/src/animator/SkDrawPath.h b/src/animator/SkDrawPath.h
index cce8cd5..d64195b 100644
--- a/src/animator/SkDrawPath.h
+++ b/src/animator/SkDrawPath.h
@@ -19,22 +19,22 @@
DECLARE_DRAW_MEMBER_INFO(Path);
SkDrawPath();
virtual ~SkDrawPath();
- virtual bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE;
+ bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE;
bool childHasID() { return SkToBool(fChildHasID); }
- virtual bool childrenNeedDisposing() const SK_OVERRIDE;
- virtual void dirty() SK_OVERRIDE;
- virtual bool draw(SkAnimateMaker& ) SK_OVERRIDE;
- virtual SkDisplayable* getParent() const SK_OVERRIDE;
+ bool childrenNeedDisposing() const SK_OVERRIDE;
+ void dirty() SK_OVERRIDE;
+ bool draw(SkAnimateMaker& ) SK_OVERRIDE;
+ SkDisplayable* getParent() const SK_OVERRIDE;
#ifdef SK_DUMP_ENABLED
- virtual void dump(SkAnimateMaker* ) SK_OVERRIDE;
+ void dump(SkAnimateMaker* ) SK_OVERRIDE;
#endif
SkPath& getPath();
- virtual bool getProperty(int index, SkScriptValue* value) const SK_OVERRIDE;
- virtual bool setProperty(int index, SkScriptValue& value) SK_OVERRIDE;
- virtual void onEndElement(SkAnimateMaker& ) SK_OVERRIDE;
- virtual void setChildHasID() SK_OVERRIDE;
- virtual bool setParent(SkDisplayable* parent) SK_OVERRIDE;
- virtual bool isPath() const SK_OVERRIDE { return true; }
+ bool getProperty(int index, SkScriptValue* value) const SK_OVERRIDE;
+ bool setProperty(int index, SkScriptValue& value) SK_OVERRIDE;
+ void onEndElement(SkAnimateMaker& ) SK_OVERRIDE;
+ void setChildHasID() SK_OVERRIDE;
+ bool setParent(SkDisplayable* parent) SK_OVERRIDE;
+ bool isPath() const SK_OVERRIDE { return true; }
public:
SkPath fPath;
protected:
@@ -51,8 +51,8 @@
class SkPolyline : public SkDrawPath {
DECLARE_MEMBER_INFO(Polyline);
- virtual bool addChild(SkAnimateMaker& , SkDisplayable*) SK_OVERRIDE;
- virtual void onEndElement(SkAnimateMaker& ) SK_OVERRIDE;
+ bool addChild(SkAnimateMaker& , SkDisplayable*) SK_OVERRIDE;
+ void onEndElement(SkAnimateMaker& ) SK_OVERRIDE;
protected:
SkTDScalarArray points;
private:
@@ -61,7 +61,7 @@
class SkPolygon : public SkPolyline {
DECLARE_MEMBER_INFO(Polygon);
- virtual void onEndElement(SkAnimateMaker& ) SK_OVERRIDE;
+ void onEndElement(SkAnimateMaker& ) SK_OVERRIDE;
private:
typedef SkPolyline INHERITED;
};