Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Unified Diff: samplecode/SampleLua.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SampleLines.cpp ('k') | samplecode/SampleManyRects.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleLua.cpp
diff --git a/samplecode/SampleLua.cpp b/samplecode/SampleLua.cpp
index 5fc9ab0c78617c251e70975ce8240d7c4425ac6f..96b15b91b8778f00d26f98fd879cf334cac9879c 100644
--- a/samplecode/SampleLua.cpp
+++ b/samplecode/SampleLua.cpp
@@ -39,7 +39,7 @@ static const char gMissingCode[] = ""
class LuaView : public SampleView {
public:
- LuaView() : fLua(NULL) {}
+ LuaView() : fLua(nullptr) {}
virtual ~LuaView() { delete fLua; }
@@ -56,7 +56,7 @@ public:
}
lua_State* ensureLua() {
- if (NULL == fLua) {
+ if (nullptr == fLua) {
fLua = new SkLua;
SkString str = GetResourcePath(LUA_FILENAME);
@@ -90,7 +90,7 @@ protected:
SkDebugf("lua err: %s\n", lua_tostring(L, -1));
} else {
if (lua_isboolean(L, -1) && lua_toboolean(L, -1)) {
- this->inval(NULL);
+ this->inval(nullptr);
return true;
}
}
@@ -117,7 +117,7 @@ protected:
SkDebugf("lua err: %s\n", lua_tostring(L, -1));
} else {
if (lua_isboolean(L, -1) && lua_toboolean(L, -1)) {
- this->inval(NULL);
+ this->inval(nullptr);
}
}
}
@@ -135,7 +135,7 @@ protected:
SkDebugf("lua err: %s\n", lua_tostring(L, -1));
} else {
if (lua_isboolean(L, -1) && lua_toboolean(L, -1)) {
- this->inval(NULL);
+ this->inval(nullptr);
Click* c = new Click(this);
c->setType(gLuaClickHandlerName);
return c;
@@ -150,7 +150,7 @@ protected:
return this->INHERITED::onClick(click);
}
- const char* state = NULL;
+ const char* state = nullptr;
switch (click->fState) {
case Click::kMoved_State:
state = "moved";
@@ -162,7 +162,7 @@ protected:
break;
}
if (state) {
- this->inval(NULL);
+ this->inval(nullptr);
lua_State* L = fLua->get();
lua_getglobal(L, gClickName);
fLua->pushScalar(click->fCurr.x());
« no previous file with comments | « samplecode/SampleLines.cpp ('k') | samplecode/SampleManyRects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698