Changeset 177


Ignore:
Timestamp:
10/08/2008 03:50:42 PM (4 years ago)
Author:
guyru
Message:

resolve some compiler warnings

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r175 r177  
    830830{ 
    831831        wxString out; 
    832         int temp = 0; 
    833832        if(m_rolls < 3){ 
    834833                YahtzeeBonus(); 
  • trunk/src/ScoreDice.cpp

    r148 r177  
    141141{ 
    142142        bool three = false; 
    143         short int temp = 0; 
    144143         
    145144        for (int i=0; i<6; i++) 
     
    158157{ 
    159158        bool four = false; 
    160         short int temp = 0; 
    161159         
    162160        for (int i=0; i<6; i++) 
  • trunk/src/configuration.cpp

    r176 r177  
    275275 
    276276bool Configuration::isHighscore(int score) { 
    277         const int highscore_list_size = atoi(m_settings["highscore-list-size"].c_str()); 
     277        const unsigned int highscore_list_size = atoi(m_settings["highscore-list-size"].c_str()); 
    278278        if (m_highscores.size()<highscore_list_size) { 
    279279                // we have extra room in the highscore list 
     
    290290 
    291291int Configuration::submitHighscore(int score, string name, string date) { 
    292         const int highscore_list_size = atoi(m_settings["highscore-list-size"].c_str()); 
    293         int place = 1; 
     292        const unsigned int highscore_list_size = atoi(m_settings["highscore-list-size"].c_str()); 
     293        unsigned int place = 1; 
    294294        HighscoreItem temp_item; 
    295295 
     
    336336} 
    337337 
    338 void Configuration::setHighscoresSize(int size) 
     338void Configuration::setHighscoresSize(size_t size) 
    339339{ 
    340340 
  • trunk/src/configuration.h

    r167 r177  
    7878        void clearHighscores(); 
    7979 
    80         void setHighscoresSize(int size); 
     80        void setHighscoresSize(size_t size); 
    8181private: 
    8282        /** 
Note: See TracChangeset for help on using the changeset viewer.