fix compiler warnings:
authormike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 24 Dec 2012 13:56:17 +0000 (13:56 +0000)
committermike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 24 Dec 2012 13:56:17 +0000 (13:56 +0000)
- initialization order in SkWriter32.h
- size_t -vs- int in rrects.cpp

git-svn-id: http://skia.googlecode.com/svn/trunk@6942 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/rrects.cpp
include/core/SkWriter32.h

index cccece9d306e610e648fc7faa1e249b3cfe01392..e58d4f2852bd24b7ae101eea51d6a62038aa3d24 100644 (file)
@@ -77,7 +77,7 @@ protected:
 
         // The first complex case needs special handling since it is a square
         fRRects[kNumSimpleCases].setRectRadii(SkRect::MakeWH(kTileY-2, kTileY-2), gRadii[0]);
-        for (int i = 1; i < SK_ARRAY_COUNT(gRadii); ++i) {
+        for (size_t i = 1; i < SK_ARRAY_COUNT(gRadii); ++i) {
             fRRects[kNumSimpleCases+i].setRectRadii(SkRect::MakeWH(kTileX-2, kTileY-2), gRadii[i]);
         }
     }
index f6c216f0674478d405cddd5755e39ab716f302b7..51044ab00ea0e3faa6387121b98dcf87067e7dfe 100644 (file)
@@ -35,11 +35,12 @@ public:
     SkWriter32(size_t minSize, void* initialStorage, size_t storageSize);
 
     SkWriter32(size_t minSize)
-        : fMinSize(minSize),
-          fSize(0),
-          fWrittenBeforeLastBlock(0),
-          fHead(NULL),
-          fTail(NULL) {}
+        : fHead(NULL)
+        , fTail(NULL)
+        , fMinSize(minSize)
+        , fSize(0)
+        , fWrittenBeforeLastBlock(0)
+        {}
 
     ~SkWriter32();