Address lint issues in pdf directories.
Review URL: http://codereview.appspot.com/4887042

git-svn-id: http://skia.googlecode.com/svn/trunk@2117 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp
index 0996d5b..218a66e 100644
--- a/src/pdf/SkPDFShader.cpp
+++ b/src/pdf/SkPDFShader.cpp
@@ -200,7 +200,7 @@
 }
 
 static SkString linearCode(const SkShader::GradientInfo& info) {
-    SkString function("{pop\n"); // Just ditch the y value.
+    SkString function("{pop\n");  // Just ditch the y value.
     tileModeCode(info.fTileMode, &function);
     gradientFunctionCode(info, &function);
     function.append("}");
@@ -300,7 +300,7 @@
 
 class SkPDFFunctionShader : public SkPDFDict, public SkPDFShader {
 public:
-    SkPDFFunctionShader(SkPDFShader::State* state);
+    explicit SkPDFFunctionShader(SkPDFShader::State* state);
     ~SkPDFFunctionShader() {
         if (isValid()) {
             RemoveShader(this);
@@ -325,7 +325,7 @@
 
 class SkPDFImageShader : public SkPDFStream, public SkPDFShader {
 public:
-    SkPDFImageShader(SkPDFShader::State* state);
+    explicit SkPDFImageShader(SkPDFShader::State* state);
     ~SkPDFImageShader() {
         RemoveShader(this);
         fResources.unrefAll();
@@ -808,8 +808,8 @@
     } else {
         fColorData.set(sk_malloc_throw(
                     fInfo.fColorCount * (sizeof(SkColor) + sizeof(SkScalar))));
-        fInfo.fColors = (SkColor*)fColorData.get();
-        fInfo.fColorOffsets = (SkScalar*)(fInfo.fColors + fInfo.fColorCount);
+        fInfo.fColors = reinterpret_cast<SkColor*>(fColorData.get());
+        fInfo.fColorOffsets = reinterpret_cast<SkScalar*>(fInfo.fColors + fInfo.fColorCount);
         shader.asAGradient(&fInfo);
     }
 }