aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-23 07:01:22 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-23 07:01:22 +0000
commit2d816ad36e806e5b1cf3c447e547829bbbe74fd1 (patch)
treece49acf0a183080f1c486726b290ae5a8a56432e /src/utils
parentf0656c140aa3dcbfb250433045e803b2b99f4cab (diff)
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@9252 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/SkLua.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index ca6f493f57..9aef50e98c 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -195,7 +195,7 @@ static SkScalar getfield_scalar(lua_State* L, int index, const char key[]) {
SkASSERT(lua_istable(L, index));
lua_pushstring(L, key);
lua_gettable(L, index);
-
+
SkScalar value = lua2scalar(L, -1);
lua_pop(L, 1);
return value;
@@ -492,18 +492,18 @@ public:
int t = lua_type(L, -1);
SkDebugf("--- expected function %d\n", t);
}
-
+
lua_newtable(L);
setfield_string(L, "verb", verb);
}
-
+
~AutoCallLua() {
if (lua_pcall(fL, 1, 0, 0) != LUA_OK) {
SkDebugf("lua err: %s\n", lua_tostring(fL, -1));
}
lua_settop(fL, -1);
}
-
+
private:
lua_State* fL;
};
@@ -563,4 +563,3 @@ void SkLua::Load(lua_State* L) {
REG_CLASS(L, SkPaint);
REG_CLASS(L, SkRRect);
}
-