[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs] CVS: kdegames/atlantik/libatlantic estate.cpp,1.6.8.2,1.6.8.3 estate.h,1.9,1.9.8.1
From: kde () office ! kde ! org
Date: 2003-01-31 5:52:58
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv28451
Modified Files:
Tag: KDE_3_1_BRANCH
estate.cpp estate.h
Log Message:
use const the way it is supposed to be used
Index: estate.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/estate.cpp,v
retrieving revision 1.6.8.2
retrieving revision 1.6.8.3
diff -u -d -r1.6.8.2 -r1.6.8.3
--- estate.cpp 20 Jan 2003 22:14:59 -0000 1.6.8.2
+++ estate.cpp 31 Jan 2003 05:52:56 -0000 1.6.8.3
@@ -70,7 +70,7 @@
m_changed = true;
}
-void Estate::setName(const QString name)
+void Estate::setName(QString name)
{
if (m_name != name)
{
@@ -79,7 +79,12 @@
}
}
-void Estate::setColor(const QColor color)
+QString Estate::name() const
+{
+ return m_name;
+}
+
+void Estate::setColor(QColor color)
{
if (m_color != color)
{
@@ -88,7 +93,7 @@
}
}
-void Estate::setBgColor(const QColor color)
+void Estate::setBgColor(QColor color)
{
if (m_bgColor != color)
{
Index: estate.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/estate.h,v
retrieving revision 1.9
retrieving revision 1.9.8.1
diff -u -d -r1.9 -r1.9.8.1
--- estate.h 30 Jun 2002 23:32:27 -0000 1.9
+++ estate.h 31 Jan 2003 05:52:56 -0000 1.9.8.1
@@ -30,8 +30,8 @@
public:
Estate(int estateId);
int estateId() const { return m_estateId; }
- void setName(const QString name);
- QString name() const { return m_name; }
+ void setName(QString name);
+ QString name() const;
void setEstateGroup(EstateGroup *estateGroup);
EstateGroup *estateGroup() { return m_estateGroup; }
void setOwner(Player *player);
@@ -50,9 +50,9 @@
bool isMortgaged() const { return m_isMortgaged; }
void setCanToggleMortgage(const bool canToggleMortgage);
bool canToggleMortgage() const { return m_canToggleMortgage; }
- void setColor(const QColor color);
+ void setColor(QColor color);
QColor color() const { return m_color; }
- void setBgColor(const QColor color);
+ void setBgColor(QColor color);
QColor bgColor() const { return m_bgColor; }
void setPrice(const unsigned int price) { m_price = price; }
unsigned int price() const { return m_price; }
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic