diff options
author | mtklein <mtklein@chromium.org> | 2015-01-09 10:06:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-09 10:06:40 -0800 |
commit | 72c9faab45124e08c85f70ca38536914862d947c (patch) | |
tree | 611893b84bb33b1592d058ee0f2382f7f86601b8 /include/core/SkStream.h | |
parent | 4490da227f1475fb66af20532c14d6d9febd18b6 (diff) |
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
Diffstat (limited to 'include/core/SkStream.h')
-rw-r--r-- | include/core/SkStream.h | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/include/core/SkStream.h b/include/core/SkStream.h index 913286bdb4..2d5969853a 100644 --- a/include/core/SkStream.h +++ b/include/core/SkStream.h @@ -133,39 +133,39 @@ private: /** SkStreamRewindable is a SkStream for which rewind and duplicate are required. */ class SK_API SkStreamRewindable : public SkStream { public: - virtual bool rewind() SK_OVERRIDE = 0; - virtual SkStreamRewindable* duplicate() const SK_OVERRIDE = 0; + bool rewind() SK_OVERRIDE = 0; + SkStreamRewindable* duplicate() const SK_OVERRIDE = 0; }; /** SkStreamSeekable is a SkStreamRewindable for which position, seek, move, and fork are required. */ class SK_API SkStreamSeekable : public SkStreamRewindable { public: - virtual SkStreamSeekable* duplicate() const SK_OVERRIDE = 0; + SkStreamSeekable* duplicate() const SK_OVERRIDE = 0; - virtual bool hasPosition() const SK_OVERRIDE { return true; } - virtual size_t getPosition() const SK_OVERRIDE = 0; - virtual bool seek(size_t position) SK_OVERRIDE = 0; - virtual bool move(long offset) SK_OVERRIDE = 0; - virtual SkStreamSeekable* fork() const SK_OVERRIDE = 0; + bool hasPosition() const SK_OVERRIDE { return true; } + size_t getPosition() const SK_OVERRIDE = 0; + bool seek(size_t position) SK_OVERRIDE = 0; + bool move(long offset) SK_OVERRIDE = 0; + SkStreamSeekable* fork() const SK_OVERRIDE = 0; }; /** SkStreamAsset is a SkStreamSeekable for which getLength is required. */ class SK_API SkStreamAsset : public SkStreamSeekable { public: - virtual SkStreamAsset* duplicate() const SK_OVERRIDE = 0; - virtual SkStreamAsset* fork() const SK_OVERRIDE = 0; + SkStreamAsset* duplicate() const SK_OVERRIDE = 0; + SkStreamAsset* fork() const SK_OVERRIDE = 0; - virtual bool hasLength() const SK_OVERRIDE { return true; } - virtual size_t getLength() const SK_OVERRIDE = 0; + bool hasLength() const SK_OVERRIDE { return true; } + size_t getLength() const SK_OVERRIDE = 0; }; /** SkStreamMemory is a SkStreamAsset for which getMemoryBase is required. */ class SK_API SkStreamMemory : public SkStreamAsset { public: - virtual SkStreamMemory* duplicate() const SK_OVERRIDE = 0; - virtual SkStreamMemory* fork() const SK_OVERRIDE = 0; + SkStreamMemory* duplicate() const SK_OVERRIDE = 0; + SkStreamMemory* fork() const SK_OVERRIDE = 0; - virtual const void* getMemoryBase() SK_OVERRIDE = 0; + const void* getMemoryBase() SK_OVERRIDE = 0; }; class SK_API SkWStream : SkNoncopyable { @@ -248,20 +248,20 @@ public: */ void setPath(const char path[]); - virtual size_t read(void* buffer, size_t size) SK_OVERRIDE; - virtual bool isAtEnd() const SK_OVERRIDE; + size_t read(void* buffer, size_t size) SK_OVERRIDE; + bool isAtEnd() const SK_OVERRIDE; - virtual bool rewind() SK_OVERRIDE; - virtual SkStreamAsset* duplicate() const SK_OVERRIDE; + bool rewind() SK_OVERRIDE; + SkStreamAsset* duplicate() const SK_OVERRIDE; - virtual size_t getPosition() const SK_OVERRIDE; - virtual bool seek(size_t position) SK_OVERRIDE; - virtual bool move(long offset) SK_OVERRIDE; - virtual SkStreamAsset* fork() const SK_OVERRIDE; + size_t getPosition() const SK_OVERRIDE; + bool seek(size_t position) SK_OVERRIDE; + bool move(long offset) SK_OVERRIDE; + SkStreamAsset* fork() const SK_OVERRIDE; - virtual size_t getLength() const SK_OVERRIDE; + size_t getLength() const SK_OVERRIDE; - virtual const void* getMemoryBase() SK_OVERRIDE; + const void* getMemoryBase() SK_OVERRIDE; private: SkFILE* fFILE; @@ -320,20 +320,20 @@ public: const void* getAtPos(); size_t peek() const { return fOffset; } - virtual size_t read(void* buffer, size_t size) SK_OVERRIDE; - virtual bool isAtEnd() const SK_OVERRIDE; + size_t read(void* buffer, size_t size) SK_OVERRIDE; + bool isAtEnd() const SK_OVERRIDE; - virtual bool rewind() SK_OVERRIDE; - virtual SkMemoryStream* duplicate() const SK_OVERRIDE; + bool rewind() SK_OVERRIDE; + SkMemoryStream* duplicate() const SK_OVERRIDE; - virtual size_t getPosition() const SK_OVERRIDE; - virtual bool seek(size_t position) SK_OVERRIDE; - virtual bool move(long offset) SK_OVERRIDE; - virtual SkMemoryStream* fork() const SK_OVERRIDE; + size_t getPosition() const SK_OVERRIDE; + bool seek(size_t position) SK_OVERRIDE; + bool move(long offset) SK_OVERRIDE; + SkMemoryStream* fork() const SK_OVERRIDE; - virtual size_t getLength() const SK_OVERRIDE; + size_t getLength() const SK_OVERRIDE; - virtual const void* getMemoryBase() SK_OVERRIDE; + const void* getMemoryBase() SK_OVERRIDE; private: SkData* fData; @@ -355,9 +355,9 @@ public: */ bool isValid() const { return fFILE != NULL; } - virtual bool write(const void* buffer, size_t size) SK_OVERRIDE; - virtual void flush() SK_OVERRIDE; - virtual size_t bytesWritten() const SK_OVERRIDE; + bool write(const void* buffer, size_t size) SK_OVERRIDE; + void flush() SK_OVERRIDE; + size_t bytesWritten() const SK_OVERRIDE; private: SkFILE* fFILE; @@ -370,8 +370,8 @@ public: SK_DECLARE_INST_COUNT(SkMemoryWStream) SkMemoryWStream(void* buffer, size_t size); - virtual bool write(const void* buffer, size_t size) SK_OVERRIDE; - virtual size_t bytesWritten() const SK_OVERRIDE { return fBytesWritten; } + bool write(const void* buffer, size_t size) SK_OVERRIDE; + size_t bytesWritten() const SK_OVERRIDE { return fBytesWritten; } private: char* fBuffer; @@ -388,8 +388,8 @@ public: SkDynamicMemoryWStream(); virtual ~SkDynamicMemoryWStream(); - virtual bool write(const void* buffer, size_t size) SK_OVERRIDE; - virtual size_t bytesWritten() const SK_OVERRIDE { return fBytesWritten; } + bool write(const void* buffer, size_t size) SK_OVERRIDE; + size_t bytesWritten() const SK_OVERRIDE { return fBytesWritten; } // random access write // modifies stream and returns true if offset + size is less than or equal to getOffset() bool write(const void* buffer, size_t offset, size_t size); @@ -434,9 +434,9 @@ public: SK_DECLARE_INST_COUNT(SkDebugWStream) // overrides - virtual bool write(const void* buffer, size_t size) SK_OVERRIDE; - virtual void newline() SK_OVERRIDE; - virtual size_t bytesWritten() const SK_OVERRIDE { return fBytesWritten; } + bool write(const void* buffer, size_t size) SK_OVERRIDE; + void newline() SK_OVERRIDE; + size_t bytesWritten() const SK_OVERRIDE { return fBytesWritten; } private: size_t fBytesWritten; |