diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 15:54:03 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 15:54:03 +0900 |
| commit | 28d5c7408f82d051019ca8f29dc309c73e539bbe (patch) | |
| tree | cb4b5a9d6b486deba93cbdf54eb93c99fd246c13 /test/GZipDecodingStreamFilterTest.cc | |
| parent | cce5b3206ae4fa44365a5ac84dfaac69a3b4035c (diff) | |
Check that C++ compiler supports override keyword
If the compiler supports override, define CXX11_OVERRIDE as override,
otherwise define it as empty. Use CXX11_OVERRIDE instead of override.
Diffstat (limited to 'test/GZipDecodingStreamFilterTest.cc')
| -rw-r--r-- | test/GZipDecodingStreamFilterTest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/GZipDecodingStreamFilterTest.cc b/test/GZipDecodingStreamFilterTest.cc index a65f92ae..56408c44 100644 --- a/test/GZipDecodingStreamFilterTest.cc +++ b/test/GZipDecodingStreamFilterTest.cc @@ -30,12 +30,12 @@ class GZipDecodingStreamFilterTest:public CppUnit::TestFixture { public: MockSegment2():positionToWrite_(0) {} - virtual void updateWrittenLength(int32_t bytes) override + virtual void updateWrittenLength(int32_t bytes) CXX11_OVERRIDE { positionToWrite_ += bytes; } - virtual int64_t getPositionToWrite() const override + virtual int64_t getPositionToWrite() const CXX11_OVERRIDE { return positionToWrite_; } |
