diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-19 15:27:46 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-19 15:27:46 +0000 |
commit | 2999f789c7e66a31066414f4b8fffb3148b677c5 (patch) | |
tree | 6a36d56b770aa99a4f89f0d33b4f0a3e30728db7 | |
parent | 276c1fabc22d4980c2ed8fe879f6510289b87cde (diff) |
landing http://codereview.appspot.com/6306095/ by guanqun
fix the following warning for SkColorTable
../src/core/SkColorTable.cpp: In copy constructor
‘SkColorTable::SkColorTable(const SkColorTable&)’:
../src/core/SkColorTable.cpp:30:1: warning: base class ‘class SkFlattenable’
should be explicitly initialized in the copy constructor [-Wextra]
git-svn-id: http://skia.googlecode.com/svn/trunk@4280 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/core/SkColorTable.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkColorTable.cpp b/src/core/SkColorTable.cpp index 921d6595b5..3797fbd376 100644 --- a/src/core/SkColorTable.cpp +++ b/src/core/SkColorTable.cpp @@ -27,7 +27,9 @@ SkColorTable::SkColorTable(int count) SkDEBUGCODE(f16BitCacheLockCount = 0;) } -SkColorTable::SkColorTable(const SkColorTable& src) { +// As copy constructor is hidden in the class hierarchy, we need to call +// default constructor explicitly to suppress a compiler warning. +SkColorTable::SkColorTable(const SkColorTable& src) : INHERITED() { f16BitCache = NULL; fFlags = src.fFlags; int count = src.count(); |