From c0d1a91017d528c600d14897e2b4a38c6b14dcd5 Mon Sep 17 00:00:00 2001 From: Subv Date: Sat, 14 Mar 2015 15:01:02 -0500 Subject: EmuWindow: Fixed a reference to a temporary variable in GetTouchState() --- src/common/emu_window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/emu_window.h') diff --git a/src/common/emu_window.h b/src/common/emu_window.h index 2be7517b..c8e2de04 100644 --- a/src/common/emu_window.h +++ b/src/common/emu_window.h @@ -110,7 +110,7 @@ public: * @return std::tuple of (x, y, pressed) where `x` and `y` are the touch coordinates and * `pressed` is true if the touch screen is currently being pressed */ - const std::tuple& GetTouchState() const { + const std::tuple GetTouchState() const { return std::make_tuple(touch_x, touch_y, touch_pressed); } -- cgit v1.2.3