]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/libs/objects.c
Use pushliteral instead of pushstring where possible. Saves a strlen call.
[vlc] / modules / misc / lua / libs / objects.c
index 36c5409430d8bf9ac1c12f3e674f3b6dd9a470dc..a10a5f3d4a4e94c23563f3ce0376c1bb0538d1af 100644 (file)
@@ -61,7 +61,7 @@ int __vlclua_push_vlc_object( lua_State *L, vlc_object_t *p_obj,
     if( luaL_newmetatable( L, "vlc_object" ) )
     {
         /* Hide the metatable */
-        lua_pushstring( L, "none of your business" );
+        lua_pushliteral( L, "none of your business" );
         lua_setfield( L, -2, "__metatable" );
         if( pf_gc ) /* FIXME */
         {