From 20bae53f4aea12d6ef21ee1f84ec720a95be5eb0 Mon Sep 17 00:00:00 2001 From: vision Date: Mon, 26 May 2014 16:32:13 +0800 Subject: [PATCH] fixing typos --- tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp | 6 +++--- tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp index a1a0041961..9d0c225f74 100644 --- a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp +++ b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp @@ -601,13 +601,13 @@ std::string CaptureScreenTest::title() const std::string CaptureScreenTest::subtitle() const { - return "Capture screen test, press the munu items to capture the screen"; + return "Capture screen test, press the menu items to capture the screen"; } void CaptureScreenTest::onCaptured(Ref*) { Director::getInstance()->getTextureCache()->removeTextureForKey(_filename); - removeChildByTag(ChildTag); + removeChildByTag(childTag); _filename = "CaptureScreenTest.png"; Director::getInstance()->captureScreen(CC_CALLBACK_2(CaptureScreenTest::afterCaptured, this), _filename); } @@ -617,7 +617,7 @@ void CaptureScreenTest::afterCaptured(bool succeed, const std::string& outputFil if (succeed) { auto sp = Sprite::create(outputFile); - addChild(sp, 0, ChildTag); + addChild(sp, 0, childTag); Size s = Director::getInstance()->getWinSize(); sp->setPosition(s.width / 2, s.height / 2); sp->setScale(0.25); diff --git a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h index 3087b7d214..204027035d 100644 --- a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h +++ b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h @@ -148,7 +148,7 @@ protected: class CaptureScreenTest : public MultiSceneTest { - static const int ChildTag = 119; + static const int childTag = 119; public: CREATE_FUNC(CaptureScreenTest); virtual std::string title() const override;