diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-27 12:54:01 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-27 12:54:01 +0000 |
commit | 05141c23ed2731bf04e7a1ca2a03ca23014b7222 (patch) | |
tree | c0a7e87e82f24b93038e6e5a32ed184e6eebe01b /src/pdf | |
parent | 725a295c50d47e730a660eeaa629568f253efc47 (diff) |
Fixed minor c++ issues found by cppcheck
http://codereview.appspot.com/6127049/
git-svn-id: http://skia.googlecode.com/svn/trunk@3771 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFShader.cpp | 4 | ||||
-rw-r--r-- | src/pdf/SkPDFShader.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp index c3c3cd060c..152c693562 100644 --- a/src/pdf/SkPDFShader.cpp +++ b/src/pdf/SkPDFShader.cpp @@ -303,7 +303,7 @@ public: class SkPDFFunctionShader : public SkPDFDict, public SkPDFShader { public: explicit SkPDFFunctionShader(SkPDFShader::State* state); - ~SkPDFFunctionShader() { + virtual ~SkPDFFunctionShader() { if (isValid()) { RemoveShader(this); } @@ -328,7 +328,7 @@ private: class SkPDFImageShader : public SkPDFStream, public SkPDFShader { public: explicit SkPDFImageShader(SkPDFShader::State* state); - ~SkPDFImageShader() { + virtual ~SkPDFImageShader() { RemoveShader(this); fResources.unrefAll(); } diff --git a/src/pdf/SkPDFShader.h b/src/pdf/SkPDFShader.h index afa63e7631..f41bdf038e 100644 --- a/src/pdf/SkPDFShader.h +++ b/src/pdf/SkPDFShader.h @@ -60,6 +60,7 @@ protected: static void RemoveShader(SkPDFObject* shader); SkPDFShader(); + virtual ~SkPDFShader() {}; virtual bool isValid() = 0; }; |