Merge pull request #4500 from pyrasis/develop

[Win32] fix compile error.
This commit is contained in:
James Chen 2013-12-16 22:22:04 -08:00
commit 27c506809f
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ void TableViewTestLayer::tableCellTouched(TableView* table, TableViewCell* cell)
CCLOG("cell touched at index: %ld", cell->getIdx());
}
Size TableViewTestLayer::tableCellSizeForIndex(TableView *table, long idx)
Size TableViewTestLayer::tableCellSizeForIndex(TableView *table, ssize_t idx)
{
if (idx == 2) {
return Size(100, 100);
@ -68,7 +68,7 @@ Size TableViewTestLayer::tableCellSizeForIndex(TableView *table, long idx)
return Size(60, 60);
}
TableViewCell* TableViewTestLayer::tableCellAtIndex(TableView *table, long idx)
TableViewCell* TableViewTestLayer::tableCellAtIndex(TableView *table, ssize_t idx)
{
auto string = String::createWithFormat("%ld", idx);
TableViewCell *cell = table->dequeueCell();

View File

@ -18,8 +18,8 @@ public:
virtual void scrollViewDidScroll(cocos2d::extension::ScrollView* view) {};
virtual void scrollViewDidZoom(cocos2d::extension::ScrollView* view) {}
virtual void tableCellTouched(cocos2d::extension::TableView* table, cocos2d::extension::TableViewCell* cell);
virtual cocos2d::Size tableCellSizeForIndex(cocos2d::extension::TableView *table, long idx);
virtual cocos2d::extension::TableViewCell* tableCellAtIndex(cocos2d::extension::TableView *table, long idx);
virtual cocos2d::Size tableCellSizeForIndex(cocos2d::extension::TableView *table, ssize_t idx);
virtual cocos2d::extension::TableViewCell* tableCellAtIndex(cocos2d::extension::TableView *table, ssize_t idx);
virtual long numberOfCellsInTableView(cocos2d::extension::TableView *table);
};