Changeset 148 for trunk


Ignore:
Timestamp:
30/01/08 14:40:23 (6 years ago)
Author:
guyru
Message:

updates to Makefile.am and some small fixes

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r135 r148  
    55SUBDIRS = src 
    66 
    7 appicondir = $(datadir)/pixmaps 
     7appicondir = $(datarootdir)/pixmaps 
    88dist_appicon_DATA = icons/openyahtzee.png 
    99 
    10 menudir = $(datadir)/applications 
     10menudir = $(datarootdir)/applications 
    1111dist_menu_DATA = openyahtzee.desktop 
    1212 
  • trunk/src/ScoreDice.cpp

    r119 r148  
    4646 * \param dice An array of 5 short ints containing the values of the dice. 
    4747 */ 
    48 void ScoreDice::SetDice(short int dice[5]) 
     48void ScoreDice::SetDice(const short int dice[5]) 
    4949{ 
    5050        for (int i=0; i<5; i++)  
     
    6767 * \see MainFrame::YahtzeeJoker() 
    6868 */ 
    69 void ScoreDice::SetYahtzeeJoker(bool is_yahtzee_joker) 
     69void ScoreDice::SetYahtzeeJoker(const bool is_yahtzee_joker) 
    7070{ 
    7171        m_yahtzee_joker = is_yahtzee_joker; 
     
    7777 * \return the value of the dice. 0 if wrong input. 
    7878 */ 
    79 short int ScoreDice::GetDice(short int number) 
     79short int ScoreDice::GetDice(const short int number) 
    8080{ 
    8181        if (number<=5 && number >=1) 
  • trunk/src/ScoreDice.h

    r118 r148  
    1919 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             * 
    2020 ***************************************************************************/ 
    21  
     21#ifndef SCORE_DICE_H 
     22#define SCORE_DICE_H 
    2223 
    2324class ScoreDice { 
     
    2526        ScoreDice(); 
    2627        ScoreDice(short int dice[5]); 
    27         void SetDice(short int dice[5]); 
     28        void SetDice(const short int dice[5]); 
    2829        void SetYahtzeeJoker(bool is_yahtzee_joker); 
    2930        short int GetDice(short int number); 
     
    5253 
    5354}; 
     55 
     56#endif //SCORE_DICE_H 
Note: See TracChangeset for help on using the changeset viewer.