Browse Source

Take callback as a const ref

master
Riyyi 4 years ago
parent
commit
74ab4f0b70
  1. 2
      inferno/src/inferno/window.h

2
inferno/src/inferno/window.h

@ -46,7 +46,7 @@ namespace Inferno {
inline GLFWwindow* getWindow() const { return m_window; }
inline const std::shared_ptr<Context>& getContext() const { return m_context; }
inline void setEventCallback(std::function<void(Event&)> callback) { m_eventCallback = callback; }
inline void setEventCallback(const std::function<void(Event&)>& callback) { m_eventCallback = callback; }
private:
WindowProperties m_properties;

Loading…
Cancel
Save