diff options
-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(); |