mirror of https://github.com/axmolengine/axmol.git
1、fixes warning.
This commit is contained in:
parent
fc515428bf
commit
af0613cf32
|
@ -278,8 +278,8 @@ void ActionTimeline::emitFrameEvent(Frame* frame)
|
|||
|
||||
void ActionTimeline::gotoFrame(int frameIndex)
|
||||
{
|
||||
int size = _timelineList.size();
|
||||
for(int i = 0; i<size; i++)
|
||||
ssize_t size = _timelineList.size();
|
||||
for(ssize_t i = 0; i < size; i++)
|
||||
{
|
||||
_timelineList.at(i)->gotoFrame(frameIndex);
|
||||
}
|
||||
|
@ -287,8 +287,8 @@ void ActionTimeline::gotoFrame(int frameIndex)
|
|||
|
||||
void ActionTimeline::stepToFrame(int frameIndex)
|
||||
{
|
||||
int size = _timelineList.size();
|
||||
for(int i = 0; i<size; i++)
|
||||
ssize_t size = _timelineList.size();
|
||||
for(ssize_t i = 0; i < size; i++)
|
||||
{
|
||||
_timelineList.at(i)->stepToFrame(frameIndex);
|
||||
}
|
||||
|
|
|
@ -176,7 +176,7 @@ bool CocoLoader::ReadCocoBinBuff(char* pBinBuff)
|
|||
char* pDestBuff = new char[m_pFileHeader->m_nDataSize];
|
||||
uLongf dwSrcSize = m_pFileHeader->m_nCompressSize;
|
||||
uLongf dwDestSize = m_pFileHeader->m_nDataSize;
|
||||
int nRes = uncompress((Bytef*)pDestBuff,&dwDestSize,(Bytef*)m_pMemoryBuff,dwSrcSize);
|
||||
uncompress((Bytef*)pDestBuff,&dwDestSize,(Bytef*)m_pMemoryBuff,dwSrcSize);
|
||||
pStartAddr = m_pMemoryBuff = pDestBuff;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,8 +18,6 @@ namespace cocostudio
|
|||
static const char* P_BallDisabledData = "ballDisabledData";
|
||||
static const char* P_ProgressBarData = "progressBarData";
|
||||
|
||||
static const char* P_BarFileName = "barFileName";
|
||||
|
||||
static SliderReader* instanceSliderReader = NULL;
|
||||
|
||||
IMPLEMENT_CLASS_WIDGET_READER_INFO(SliderReader)
|
||||
|
|
|
@ -15,9 +15,6 @@ namespace cocostudio
|
|||
static const char* P_ItemHeight = "itemHeight";
|
||||
static const char* P_StartCharMap = "startCharMap";
|
||||
|
||||
|
||||
static const char* P_CharMapFile = "charMapFile";
|
||||
|
||||
static TextAtlasReader* instanceTextAtalsReader = NULL;
|
||||
|
||||
IMPLEMENT_CLASS_WIDGET_READER_INFO(TextAtlasReader)
|
||||
|
|
Loading…
Reference in New Issue