delete semicolon after NS_CC_BEGIN and NS_CC_END

This commit is contained in:
James Chen 2012-04-19 11:56:22 +08:00
parent 4068be84e9
commit 84ffaf130a
33 changed files with 72 additions and 73 deletions

View File

@ -11,7 +11,7 @@
#define LOG_TAG "CCApplication_android Debug"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
NS_CC_BEGIN;
NS_CC_BEGIN
// sharedApplication pointer
CCApplication * CCApplication::sm_pSharedApplication = 0;
@ -113,4 +113,4 @@ ccLanguageType CCApplication::getCurrentLanguage()
return ret;
}
NS_CC_END;
NS_CC_END

View File

@ -5,7 +5,7 @@
#include "CCCommon.h"
NS_CC_BEGIN;
NS_CC_BEGIN
class CCRect;
@ -90,6 +90,6 @@ protected:
static CCApplication * sm_pSharedApplication;
};
NS_CC_END;
NS_CC_END
#endif // __CCX_APPLICATION_ANDROID_H__

View File

@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
NS_CC_BEGIN;
NS_CC_BEGIN
#include "CCCommon.h"
#include "jni/SystemInfoJni.h"
@ -144,4 +144,4 @@ string CCFileUtils::getWriteablePath()
}
}
NS_CC_END;
NS_CC_END

View File

@ -33,7 +33,7 @@ THE SOFTWARE.
#include "jni/JniHelper.h"
NS_CC_BEGIN;
NS_CC_BEGIN
class BitmapDC
{
@ -135,7 +135,7 @@ bool CCImage::initWithString(
return bRet;
}
NS_CC_END;
NS_CC_END
// this method is called by Cocos2dxBitmap
extern "C"

View File

@ -29,7 +29,7 @@ THE SOFTWARE.
using namespace Osp::Ui;
using namespace Osp::Uix;
NS_CC_BEGIN;
NS_CC_BEGIN
CCAccelerometer::CCAccelerometer()
@ -146,4 +146,4 @@ void CCAccelerometer::setEnable(bool bEnable)
}
}
NS_CC_END;
NS_CC_END

View File

@ -31,7 +31,7 @@ using namespace Osp::Base;
using namespace Osp::Base::Runtime;
using namespace Osp::Locales;
NS_CC_BEGIN;
NS_CC_BEGIN
static CCApplication * s_pApplication = NULL;
static long long s_nAnimationInterval = 1000/60;
@ -179,4 +179,4 @@ void CCApplication::OnTimerExpired(Timer& timer)
CCDirector::sharedDirector()->mainLoop();
}
NS_CC_END;
NS_CC_END

View File

@ -32,7 +32,7 @@ THE SOFTWARE.
#include <FApp.h>
#include <FSystem.h>
NS_CC_BEGIN;
NS_CC_BEGIN
@ -120,6 +120,6 @@ protected:
Osp::Base::Runtime::Timer* m_pTimer;
};
NS_CC_END;
NS_CC_END
#endif // end of __CCX_APPLICATION_WIN32_H__

View File

@ -43,7 +43,7 @@ using namespace Osp::Ui;
using namespace Osp::Ui::Controls;
using namespace Osp::Graphics;
NS_CC_BEGIN;
NS_CC_BEGIN
static CCEGLView * s_pMainWindow;
static HashMapT<int, CCTouch*> s_mapTouches; // key: pointer id; value: CCTouch*
@ -674,4 +674,4 @@ CCEGLView& CCEGLView::sharedOpenGLView()
return *s_pMainWindow;
}
NS_CC_END;
NS_CC_END

View File

@ -34,7 +34,7 @@ THE SOFTWARE.
#include <GLES/gl.h>
#include <GLES/glext.h>
NS_CC_BEGIN;
NS_CC_BEGIN
class CCSet;
class CCTouch;
@ -152,6 +152,6 @@ private:
Osp::Ui::Orientation m_nowOrientation;
};
NS_CC_END;
NS_CC_END
#endif // end of __CCX_EGLVIEW_WIN32_H__

View File

@ -28,7 +28,7 @@ THE SOFTWARE.
using namespace std;
NS_CC_BEGIN;
NS_CC_BEGIN
// record the resource path
static string s_strResourcePath = "";
@ -134,5 +134,5 @@ string CCFileUtils::getWriteablePath()
return "/Home/";
}
NS_CC_END;
NS_CC_END

View File

@ -29,7 +29,7 @@ using namespace Osp::Base::Collection;
using namespace Osp::Graphics;
NS_CC_BEGIN;
NS_CC_BEGIN
/**
@brief A memory DC which uses to draw text on bitmap.
@ -249,4 +249,4 @@ bool CCImage::initWithString(
return bRet;
}
NS_CC_END;
NS_CC_END

View File

@ -27,7 +27,7 @@ THE SOFTWARE.
#include "CCCommon.h"
NS_CC_BEGIN;
NS_CC_BEGIN
class CCRect;
@ -112,6 +112,6 @@ protected:
static CCApplication * sm_pSharedApplication;
};
NS_CC_END;
NS_CC_END
#endif // end of __CC_APPLICATION_IOS_H__

View File

@ -29,7 +29,7 @@
#import "CCGeometry.h"
#import "CCDirectorCaller.h"
NS_CC_BEGIN;
NS_CC_BEGIN
CCApplication* CCApplication::sm_pSharedApplication = 0;
@ -145,4 +145,4 @@ ccLanguageType CCApplication::getCurrentLanguage()
return ret;
}
NS_CC_END;
NS_CC_END

View File

@ -29,7 +29,7 @@
#import <UIKit/UIAlert.h>
NS_CC_BEGIN;
NS_CC_BEGIN
void CCLog(const char * pszFormat, ...)
{
@ -58,4 +58,4 @@ void CCMessageBox(const char * pszMsg, const char * pszTitle)
[messageBox show];
}
NS_CC_END;
NS_CC_END

View File

@ -483,7 +483,7 @@ static bool _initWithString(const char * pText, cocos2d::CCImage::ETextAlign eAl
return bRet;
}
NS_CC_BEGIN;
NS_CC_BEGIN
CCImage::CCImage()
: m_nWidth(0)
@ -706,5 +706,5 @@ bool CCImage::saveToFile(const char *pszFilePath, bool bIsToRGB)
return true;
}
NS_CC_END;
NS_CC_END

View File

@ -24,7 +24,7 @@ THE SOFTWARE.
#import <UIKit/UIKit.h>
#include "CCThread.h"
NS_CC_BEGIN;
NS_CC_BEGIN
CCThread::~CCThread()
{
@ -36,4 +36,4 @@ void CCThread::createAutoreleasePool()
m_pAutoreasePool = [[NSAutoreleasePool alloc] init];
}
NS_CC_END;
NS_CC_END

View File

@ -10,7 +10,7 @@
#include "CCDirector.h"
NS_CC_BEGIN;
NS_CC_BEGIN
// sharedApplication pointer
CCApplication * CCApplication::sm_pSharedApplication = 0;
@ -100,4 +100,4 @@ ccLanguageType CCApplication::getCurrentLanguage()
return kLanguageEnglish;
}
NS_CC_END;
NS_CC_END

View File

@ -10,7 +10,8 @@
#include "CCCommon.h"
NS_CC_BEGIN;
NS_CC_BEGIN
class CCRect;
class CCApplication {
@ -94,6 +95,6 @@ protected:
static CCApplication * sm_pSharedApplication;
};
NS_CC_END;
NS_CC_END
#endif /* CCAPPLICATION_LINUX_H_ */

View File

@ -6,11 +6,8 @@
*/
#include "CCEGLView_linux.h"
#include "CCGL.h"
#include "GL/glfw.h"
#include "CCSet.h"
#include "ccMacros.h"
#include "CCDirector.h"
@ -77,7 +74,8 @@ bool initExtensions() {
return bRet;
}
NS_CC_BEGIN;
NS_CC_BEGIN
static CCEGLView* s_pMainWindow = NULL;
CCEGLView::CCEGLView()
@ -361,4 +359,4 @@ CCEGLView& CCEGLView::sharedOpenGLView()
return *s_pMainWindow;
}
NS_CC_END;
NS_CC_END

View File

@ -13,7 +13,7 @@
bool initExtensions();
NS_CC_BEGIN;
NS_CC_BEGIN
class CCSet;
class CCTouch;
@ -92,6 +92,6 @@ private:
float m_fScreenScaleFactor;
};
NS_CC_END;
NS_CC_END
#endif /* CCEGLVIEWLINUX_H_ */

View File

@ -14,7 +14,7 @@
using namespace std;
NS_CC_BEGIN;
NS_CC_BEGIN
static string s_strResourcePath = "";
@ -90,4 +90,4 @@ string CCFileUtils::getWriteablePath() {
return s_strResourcePath;
}
NS_CC_END;
NS_CC_END

View File

@ -23,7 +23,8 @@ struct TextLine {
int iLineWidth;
};
NS_CC_BEGIN;
NS_CC_BEGIN
class BitmapDC
{
public:
@ -341,4 +342,4 @@ bool CCImage::initWithString(
return bRet;
}
NS_CC_END;
NS_CC_END

View File

@ -33,7 +33,7 @@
#include <IwMemBucketHelpers.h>
NS_CC_BEGIN;
NS_CC_BEGIN
// sharedApplication pointer
CCApplication * CCApplication::sm_pSharedApplication = 0;
@ -186,4 +186,4 @@ ccLanguageType CCApplication::getCurrentLanguage()
}
NS_CC_END;
NS_CC_END

View File

@ -31,7 +31,8 @@
#include "CCDirector.h"
#include "IwUtil.h"
#include "IwUtilInitTerm.h"
NS_CC_BEGIN;
NS_CC_BEGIN
class CCRect;
@ -118,5 +119,6 @@ protected:
static CCApplication * sm_pSharedApplication;
};
NS_CC_END;
NS_CC_END
#endif // end of __CC_APPLICATION_MARMALADE_H__

View File

@ -23,9 +23,7 @@
****************************************************************************/
#include "CCEGLView.h"
#include "IwGL.h"
#include "CCApplication.h"
#include "CCDirector.h"
#include "CCSet.h"
@ -38,7 +36,7 @@
#include <stdlib.h>
#include <s3eOSReadString.h>
NS_CC_BEGIN;
NS_CC_BEGIN
CCEGLView* CCEGLView::m_pInstance = 0 ;
@ -397,4 +395,4 @@ CCRect CCEGLView::getViewPort()
}
NS_CC_END;
NS_CC_END

View File

@ -30,7 +30,8 @@
#include "s3ePointer.h"
#include "IwUtil.h"
NS_CC_BEGIN;
NS_CC_BEGIN
class CCSet;
class CCTouch;
class EGLTouchDelegate;
@ -144,6 +145,6 @@ private:
}
};
NS_CC_END;
NS_CC_END
#endif // end of __CC_EGLVIEW_MARMALADE_H__

View File

@ -26,10 +26,9 @@
#include "string.h"
#include "stack"
#include "CCString.h"
#include "CCApplication.h"
NS_CC_BEGIN;
NS_CC_BEGIN
static char s_pszResourcePath[S3E_FILE_MAX_PATH] = {0};
@ -105,5 +104,5 @@ std::string CCFileUtils::getWriteablePath()
return string("ram://");
}
NS_CC_END;
NS_CC_END

View File

@ -24,7 +24,6 @@
#include <vector>
#include <string>
#include <sstream>
#include "CCImage.h"
#include "CCCommon.h"
#include "CCStdC.h"
@ -59,7 +58,7 @@ struct TextLine {
int iLineWidth;
};
NS_CC_BEGIN;
NS_CC_BEGIN
class CC_DLL CCImageHelper
{
@ -856,4 +855,4 @@ bool CCImage::_saveImageToJPG(const char * pszFilePath)
return false;
}
NS_CC_END;
NS_CC_END

View File

@ -10,7 +10,7 @@
#define LOGD(...) fprintf(stderr, __VA_ARGS__)
NS_CC_BEGIN;
NS_CC_BEGIN
// sharedApplication pointer
CCApplication * CCApplication::sm_pSharedApplication = 0;
@ -144,4 +144,4 @@ ccLanguageType CCApplication::getCurrentLanguage()
return ret_language;
}
NS_CC_END;
NS_CC_END

View File

@ -5,7 +5,7 @@
#include "CCCommon.h"
NS_CC_BEGIN;
NS_CC_BEGIN
class CCRect;
@ -95,6 +95,6 @@ private:
static long m_animationInterval;
};
NS_CC_END;
NS_CC_END
#endif // __CCX_APPLICATION_QNX_H__

View File

@ -28,7 +28,7 @@ THE SOFTWARE.
#include <string>
#include <unistd.h>
NS_CC_BEGIN;
NS_CC_BEGIN
#define MAX_PATH 256
@ -158,4 +158,4 @@ std::string CCFileUtils::getWriteablePath()
return path;
}
NS_CC_END;
NS_CC_END

View File

@ -31,7 +31,7 @@ THE SOFTWARE.
using namespace std;
NS_CC_BEGIN;
NS_CC_BEGIN
class BitmapDC
{
@ -240,5 +240,5 @@ bool CCImage::initWithString(
return bRet;
}
NS_CC_END;
NS_CC_END

View File

@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
NS_CC_BEGIN;
NS_CC_BEGIN
/**
@brief A memory DC which uses to draw text on bitmap.
@ -428,4 +428,4 @@ bool CCImage::initWithString(
return bRet;
}
NS_CC_END;
NS_CC_END