Skip to content

Commit

Permalink
xrScriptEngine: Fix C4456 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 15, 2016
1 parent 86bf661 commit 8d0873c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/xrScriptEngine/Functor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ class functor : public adl::object
template <typename... Args>
TResult operator()(Args &&...args) const
{
auto self = static_cast<const adl::object *>(this);
return call_function<TResult, policy_list<Policies...>>(*self, std::forward<Args>(args)...);
auto obj = static_cast<const adl::object *>(this);
return call_function<TResult, policy_list<Policies...>>(*obj, std::forward<Args>(args)...);
}
};

template <>
template <typename... Args>
void functor<void, typename...>::operator()(Args &&...args) const
{
auto self = static_cast<const adl::object *>(this);
call_function<void, policy_list<Policies...>>(*self, std::forward<Args>(args)...);
auto obj = static_cast<const adl::object *>(this);
call_function<void, policy_list<Policies...>>(*obj, std::forward<Args>(args)...);
}

namespace detail
Expand Down
3 changes: 1 addition & 2 deletions src/xrScriptEngine/ScriptEngineScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#include "Include/xrAPI/xrAPI.h"
#include "ScriptExporter.hpp"

using namespace luabind;

void LuaLog(LPCSTR caMessage)
{
#ifndef MASTER_GOLD
Expand Down Expand Up @@ -151,6 +149,7 @@ std::ostream& operator<<(std::ostream& os, const profile_timer_script& pt)

SCRIPT_EXPORT(CScriptEngine, (),
{
using namespace luabind;
module(luaState)
[
class_<profile_timer_script>("profile_timer")
Expand Down

0 comments on commit 8d0873c

Please sign in to comment.