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/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp
index 5f0195d..4e1ad15 100644
--- a/tests/RecordDrawTest.cpp
+++ b/tests/RecordDrawTest.cpp
@@ -24,7 +24,7 @@
public:
JustOneDraw() : fCalls(0) {}
- virtual bool abort() SK_OVERRIDE { return fCalls++ > 0; }
+ bool abort() SK_OVERRIDE { return fCalls++ > 0; }
private:
int fCalls;
};
@@ -123,7 +123,7 @@
}
struct TestBBH : public SkBBoxHierarchy {
- virtual void insert(SkAutoTMalloc<SkRect>* boundsArray, int N) SK_OVERRIDE {
+ void insert(SkAutoTMalloc<SkRect>* boundsArray, int N) SK_OVERRIDE {
fEntries.setCount(N);
for (int i = 0; i < N; i++) {
Entry e = { (unsigned)i, (*boundsArray)[i] };
@@ -131,8 +131,8 @@
}
}
- virtual void search(const SkRect& query, SkTDArray<unsigned>* results) const SK_OVERRIDE {}
- virtual size_t bytesUsed() const SK_OVERRIDE { return 0; }
+ void search(const SkRect& query, SkTDArray<unsigned>* results) const SK_OVERRIDE {}
+ size_t bytesUsed() const SK_OVERRIDE { return 0; }
struct Entry {
unsigned opIndex;