Cosmetics.

This commit is contained in:
Birunthan Mohanathas
2012-03-09 10:41:46 +00:00
parent 7767300379
commit ad2a986e88
6 changed files with 15 additions and 24 deletions

View File

@ -29,8 +29,7 @@ inline CMeter* GetSelf(lua_State* L)
static int GetName(lua_State* L)
{
CMeter* self = GetSelf(L);
const WCHAR* val = (const WCHAR*)self->GetName();
LuaManager::PushWide(L, val);
LuaManager::PushWide(L, self->GetName());
return 1;
}
@ -138,7 +137,6 @@ static int Show(lua_State* L)
static int SetText(lua_State* L)
{
CMeter* self = GetSelf(L);
if (CMeterString* stringMeter = dynamic_cast<CMeterString*>(self))
{
std::wstring str = LuaManager::ToWide(L, 2);