Removing several unnecessary allocations.

This commit is contained in:
lotodore committed 2011-02-28 22:05:44 +00:00
1 parent a87a12e8b0
commit 6f290be894
9 files changed
+35 -76

No files matched your search

+1 -3
View File
@@ -3536,8 +3536,6 @@ void gameTableImpl::refreshVotesMonitor(int currentVotes, int numVotesNeededToKi
void gameTableImpl::refreshCardsChance(GameState bero)
{
CardsValue myCardsValue;
if(myConfig->readConfigInt("ShowCardsChanceMonitor")) {
boost::shared_ptr<PlayerInterface> humanPlayer = myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front();
@@ -3548,7 +3546,7 @@ void gameTableImpl::refreshCardsChance(GameState bero)
humanPlayer->getMyCards(holeCards);
myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getBoard()->getMyCards(boardCards);
label_chance->refreshChance(myCardsValue.calcCardsChance(bero, holeCards, boardCards));
label_chance->refreshChance(CardsValue::calcCardsChance(bero, holeCards, boardCards));
} else {
label_chance->resetChance();
}