Fix typos in documentation and comments

This commit is contained in:
mogemimi 2016-05-05 08:05:20 +09:00
Родитель 32fc654b84
Коммит 2df9afbe71
10 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@ -452,7 +452,7 @@ void ActionManager::update(float dt)
{
deleteHashElement(_currentTarget);
}
//if some node refrence 'target', it's refrence count >= 2 (issues #14050)
//if some node reference 'target', it's reference count >= 2 (issues #14050)
else if (_currentTarget->target->getReferenceCount() == 1)
{
deleteHashElement(_currentTarget);

Просмотреть файл

@ -196,7 +196,7 @@ namespace DrawPrimitives
* @param origin The origin of the bezier path.
* @param control The control of the bezier path.
* @param destination The destination of the bezier path.
* @param segments The The number of segments.
* @param segments The number of segments.
* @warning This function could be pretty slow. Use it only for debugging purposes.
* @since v0.8
*/
@ -208,7 +208,7 @@ namespace DrawPrimitives
* @param control1 The first control of the bezier path.
* @param control2 The second control of the bezier path.
* @param destination The destination of the bezier path.
* @param segments The The number of segments.
* @param segments The number of segments.
* @warning This function could be pretty slow. Use it only for debugging purposes.
* @since v0.8
*/
@ -217,7 +217,7 @@ namespace DrawPrimitives
/** Draws a Catmull Rom path.
*
* @param arrayOfControlPoints A point array of control point.
* @param segments The The number of segments.
* @param segments The number of segments.
* @warning This function could be pretty slow. Use it only for debugging purposes.
* @since v2.0
*/
@ -227,7 +227,7 @@ namespace DrawPrimitives
*
* @param config A array point.
* @param tension The tension of the spline.
* @param segments The The number of segments.
* @param segments The number of segments.
* @warning This function could be pretty slow. Use it only for debugging purposes.
* @since v2.0
*/

Просмотреть файл

@ -322,7 +322,7 @@ void SpriteFrameCache::addSpriteFramesWithDictionary(ValueMap& dict, const std::
{"I8", Texture2D::PixelFormat::I8},
{"AI88", Texture2D::PixelFormat::AI88},
{"ALPHA_INTENSITY", Texture2D::PixelFormat::AI88},
//{"BGRA8888", Texture2D::PixelFormat::BGRA8888}, no Image convertion RGBA -> BGRA
//{"BGRA8888", Texture2D::PixelFormat::BGRA8888}, no Image conversion RGBA -> BGRA
{"RGB888", Texture2D::PixelFormat::RGB888}
};

Просмотреть файл

@ -605,7 +605,7 @@ void EventDispatcher::removeEventListener(EventListener* listener)
if (listener == nullptr)
return;
// just return if listener is in _toRemovedListeners to avoid remove listeners more than onece
// just return if listener is in _toRemovedListeners to avoid remove listeners more than once
if (std::find(_toRemovedListeners.begin(), _toRemovedListeners.end(), listener) != _toRemovedListeners.end())
return;

Просмотреть файл

@ -127,7 +127,7 @@ namespace utils
/**
* Find a child by name recursively
* @return Returns found node or nullptr with specificed type 'T'
* @return Returns found node or nullptr with specified type 'T'
*/
template<typename T> inline
T findChild(Node* levelRoot, const char* name)
@ -138,7 +138,7 @@ namespace utils
/**
* Find a child by tag recursively
* @return Returns found node or nullptr with specificed type 'T'
* @return Returns found node or nullptr with specified type 'T'
*/
template<typename T> inline
T findChild(Node* levelRoot, int tag)

Просмотреть файл

@ -200,7 +200,7 @@ public:
* @brief Closes the connection to server asynchronously.
* @note It's an asynchronous method, it just notifies websocket thread to exit and returns directly,
* If using 'closeAsync' to close websocket connection,
* be carefull of not using destructed variables in the callback of 'onClose'.
* be careful of not using destructed variables in the callback of 'onClose'.
*/
void closeAsync();

Просмотреть файл

@ -57,9 +57,9 @@ THE SOFTWARE.
#define CC_TARGET_PLATFORM CC_PLATFORM_UNKNOWN
// Apple: Mac and iOS
#if defined(__APPLE__) && !defined(ANDROID) // execlude android for binding generator.
#if defined(__APPLE__) && !defined(ANDROID) // exclude android for binding generator.
#include <TargetConditionals.h>
#if TARGET_OS_IPHONE // TARGET_OS_IPHONE inlcudes TARGET_OS_IOS TARGET_OS_TV and TARGET_OS_WATCH. see TargetConditionals.h
#if TARGET_OS_IPHONE // TARGET_OS_IPHONE includes TARGET_OS_IOS TARGET_OS_TV and TARGET_OS_WATCH. see TargetConditionals.h
#undef CC_TARGET_PLATFORM
#define CC_TARGET_PLATFORM CC_PLATFORM_IOS
#elif TARGET_OS_MAC

Просмотреть файл

@ -71,7 +71,7 @@ public:
int run();
/**
@brief Get current applicaiton instance.
@brief Get current application instance.
@return Current application instance pointer.
*/
static Application* getInstance();

Просмотреть файл

@ -44,7 +44,7 @@ NS_CC_BEGIN
class CC_DLL FileUtilsTizen : public FileUtils
{
public:
/* override funtions */
/* override functions */
virtual bool init() override;
virtual std::string getWritablePath() const override;

Просмотреть файл

@ -479,7 +479,7 @@ namespace ui
TabHeader* tabcell = new (std::nothrow) TabHeader();
if (tabcell != nullptr && tabcell->init())
{
tabcell->_frontCrossRenderer->setVisible(false); // _isSelected == fales
tabcell->_frontCrossRenderer->setVisible(false); // _isSelected == false
tabcell->_anchorPoint = Vec2(.5f, 0);
tabcell->autorelease();
return tabcell;