aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils/SkLua.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utils/SkLua.h')
-rw-r--r--include/utils/SkLua.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/include/utils/SkLua.h b/include/utils/SkLua.h
index ea3e166b04..651c4a71d5 100644
--- a/include/utils/SkLua.h
+++ b/include/utils/SkLua.h
@@ -30,7 +30,7 @@ class SkLua {
public:
static void Load(lua_State*);
- SkLua(const char termCode[] = NULL); // creates a new L, will close it
+ SkLua(const char termCode[] = nullptr); // creates a new L, will close it
SkLua(lua_State*); // uses L, will not close it
~SkLua();
@@ -41,24 +41,24 @@ public:
bool runCode(const char code[]);
bool runCode(const void* code, size_t size);
- void pushBool(bool, const char tableKey[] = NULL);
- void pushString(const char[], const char tableKey[] = NULL);
- void pushString(const char[], size_t len, const char tableKey[] = NULL);
- void pushString(const SkString&, const char tableKey[] = NULL);
- void pushArrayU16(const uint16_t[], int count, const char tableKey[] = NULL);
- void pushArrayPoint(const SkPoint[], int count, const char key[] = NULL);
- void pushArrayScalar(const SkScalar[], int count, const char key[] = NULL);
- void pushColor(SkColor, const char tableKey[] = NULL);
- void pushU32(uint32_t, const char tableKey[] = NULL);
- void pushScalar(SkScalar, const char tableKey[] = NULL);
- void pushRect(const SkRect&, const char tableKey[] = NULL);
- void pushRRect(const SkRRect&, const char tableKey[] = NULL);
- void pushDash(const SkPathEffect::DashInfo&, const char tableKey[] = NULL);
- void pushMatrix(const SkMatrix&, const char tableKey[] = NULL);
- void pushPaint(const SkPaint&, const char tableKey[] = NULL);
- void pushPath(const SkPath&, const char tableKey[] = NULL);
- void pushCanvas(SkCanvas*, const char tableKey[] = NULL);
- void pushTextBlob(const SkTextBlob*, const char tableKey[] = NULL);
+ void pushBool(bool, const char tableKey[] = nullptr);
+ void pushString(const char[], const char tableKey[] = nullptr);
+ void pushString(const char[], size_t len, const char tableKey[] = nullptr);
+ void pushString(const SkString&, const char tableKey[] = nullptr);
+ void pushArrayU16(const uint16_t[], int count, const char tableKey[] = nullptr);
+ void pushArrayPoint(const SkPoint[], int count, const char key[] = nullptr);
+ void pushArrayScalar(const SkScalar[], int count, const char key[] = nullptr);
+ void pushColor(SkColor, const char tableKey[] = nullptr);
+ void pushU32(uint32_t, const char tableKey[] = nullptr);
+ void pushScalar(SkScalar, const char tableKey[] = nullptr);
+ void pushRect(const SkRect&, const char tableKey[] = nullptr);
+ void pushRRect(const SkRRect&, const char tableKey[] = nullptr);
+ void pushDash(const SkPathEffect::DashInfo&, const char tableKey[] = nullptr);
+ void pushMatrix(const SkMatrix&, const char tableKey[] = nullptr);
+ void pushPaint(const SkPaint&, const char tableKey[] = nullptr);
+ void pushPath(const SkPath&, const char tableKey[] = nullptr);
+ void pushCanvas(SkCanvas*, const char tableKey[] = nullptr);
+ void pushTextBlob(const SkTextBlob*, const char tableKey[] = nullptr);
private:
lua_State* fL;