From 57508b3c1239afe3cacc34abcf82b4535c0075ca Mon Sep 17 00:00:00 2001 From: WenhaiLin Date: Thu, 9 Apr 2015 12:49:32 +0800 Subject: [PATCH] Fixed compile errors --- tests/cpp-tests/Classes/BaseTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cpp-tests/Classes/BaseTest.cpp b/tests/cpp-tests/Classes/BaseTest.cpp index 3b9f31bfd8..feca404c7e 100644 --- a/tests/cpp-tests/Classes/BaseTest.cpp +++ b/tests/cpp-tests/Classes/BaseTest.cpp @@ -98,8 +98,8 @@ public: auto mouseEvent = static_cast(event); float moveY = mouseEvent->getScrollY() * 20; - auto& minOffset = this->minContainerOffset(); - auto& maxOffset = this->maxContainerOffset(); + auto minOffset = this->minContainerOffset(); + auto maxOffset = this->maxContainerOffset(); auto offset = this->getContentOffset(); offset.y += moveY;