aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-27 12:54:01 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-27 12:54:01 +0000
commit05141c23ed2731bf04e7a1ca2a03ca23014b7222 (patch)
treec0a7e87e82f24b93038e6e5a32ed184e6eebe01b /src/pdf
parent725a295c50d47e730a660eeaa629568f253efc47 (diff)
Fixed minor c++ issues found by cppcheck
Diffstat (limited to 'src/pdf')
-rw-r--r--src/pdf/SkPDFShader.cpp4
-rw-r--r--src/pdf/SkPDFShader.h1
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;
};