[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] eliot game/history.cpp utils/eliottxt.cpp [cppdic]
From: |
eliot-dev |
Subject: |
[Eliot-dev] eliot game/history.cpp utils/eliottxt.cpp [cppdic] |
Date: |
Sat, 13 Jan 2007 21:37:45 +0000 |
CVSROOT: /cvsroot/eliot
Module name: eliot
Branch: cppdic
Changes by: Olivier Teulière <ipkiss> 07/01/13 21:37:45
Modified files:
game : history.cpp
utils : eliottxt.cpp
Log message:
Fixed compilation warnings
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/game/history.cpp?cvsroot=eliot&only_with_tag=cppdic&r1=1.10&r2=1.10.2.1
http://cvs.savannah.gnu.org/viewcvs/eliot/utils/eliottxt.cpp?cvsroot=eliot&only_with_tag=cppdic&r1=1.16.2.2&r2=1.16.2.3
Patches:
Index: game/history.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/game/history.cpp,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -b -r1.10 -r1.10.2.1
--- game/history.cpp 22 Jan 2006 12:23:53 -0000 1.10
+++ game/history.cpp 13 Jan 2007 21:37:45 -0000 1.10.2.1
@@ -88,7 +88,7 @@
const Turn& History::getTurn(unsigned int n) const
{
- ASSERT(0 <= n && n < m_history.size(), "Wrong turn number");
+ ASSERT(n < m_history.size(), "Wrong turn number");
return *(m_history[n]);
}
Index: utils/eliottxt.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/utils/eliottxt.cpp,v
retrieving revision 1.16.2.2
retrieving revision 1.16.2.3
diff -u -b -r1.16.2.2 -r1.16.2.3
--- utils/eliottxt.cpp 5 Nov 2006 17:27:03 -0000 1.16.2.2
+++ utils/eliottxt.cpp 13 Jan 2007 21:37:45 -0000 1.16.2.3
@@ -280,7 +280,7 @@
void display_data(const Game &iGame, const wchar_t *delim, wchar_t **state)
{
- wchar_t *token;
+ const wchar_t *token;
token = next_token_alpha(NULL, delim, state);
if (token == NULL)
@@ -367,7 +367,7 @@
void loop_training(Training &iGame)
{
- wchar_t *token;
+ const wchar_t *token;
wchar_t *state;
wchar_t *commande = NULL;
wchar_t delim[] = L" \t";
@@ -501,7 +501,7 @@
void loop_freegame(FreeGame &iGame)
{
- wchar_t *token;
+ const wchar_t *token;
wchar_t *state;
wchar_t *commande = NULL;
wchar_t delim[] = L" \t";
@@ -602,7 +602,7 @@
void loop_duplicate(Duplicate &iGame)
{
- wchar_t *token;
+ const wchar_t *token;
wchar_t *state;
wchar_t *commande = NULL;
wchar_t delim[] = L" \t";
@@ -810,7 +810,7 @@
void main_loop(const Dictionary &iDic)
{
- wchar_t *token;
+ const wchar_t *token;
wchar_t *state;
wchar_t *commande = NULL;
wchar_t delim[] = L" \t";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Eliot-dev] eliot game/history.cpp utils/eliottxt.cpp [cppdic],
eliot-dev <=