aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/pixelsnap.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2015-08-20 07:57:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-20 07:57:52 -0700
commit99fe82260633fcf5d92cca38d12ef0937ecca61c (patch)
tree258dedccd2b908de58f6b1ae7c67dbfbe7208866 /gm/pixelsnap.cpp
parent915881fe743f9a789037695f543bc6ea189cd0cb (diff)
Use static_assert instead of SK_COMPILE_ASSERT.
Now that static_assert is allowed, there is no need to use a non- standard compile time assertion Review URL: https://codereview.chromium.org/1306443004
Diffstat (limited to 'gm/pixelsnap.cpp')
-rw-r--r--gm/pixelsnap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/pixelsnap.cpp b/gm/pixelsnap.cpp
index 3358e9d410..ea85a948ac 100644
--- a/gm/pixelsnap.cpp
+++ b/gm/pixelsnap.cpp
@@ -23,7 +23,7 @@ protected:
static const int kSubPixelSteps = 8;
static const int kLabelTextSize = 9;
- SK_COMPILE_ASSERT(kSubPixelSteps < 99, label_offset_too_small);
+ static_assert(kSubPixelSteps < 99, "label_offset_too_small");
static const int kLabelOffsetX = 2 * kLabelTextSize + kLabelPad;
static const int kLabelOffsetY = kLabelTextSize + kLabelPad;