]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/libs/sd.c
Use pushliteral instead of pushstring where possible. Saves a strlen call.
[vlc] / modules / misc / lua / libs / sd.c
index a5bb09fab2c7b3b6a09fe7337bcc732b870a4754..85e1f59f29f7f5f859e67f22a22ee96993642437 100644 (file)
@@ -185,7 +185,7 @@ static int vlclua_sd_add_item( lua_State *L )
             *udata = p_input;
             if( luaL_newmetatable( L, "input_item_t" ) )
             {
-                lua_pushstring( L, "none of your business" );
+                lua_pushliteral( L, "none of your business" );
                 lua_setfield( L, -2, "__metatable" );
             }
             lua_setmetatable( L, -2 );
@@ -250,7 +250,7 @@ static int vlclua_node_add_subitem( lua_State *L )
                 *udata = p_input;
                 if( luaL_newmetatable( L, "input_item_t" ) )
                 {
-                    lua_pushstring( L, "none of your business" );
+                    lua_pushliteral( L, "none of your business" );
                     lua_setfield( L, -2, "__metatable" );
                 }
                 lua_setmetatable( L, -2 );