eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/game rack.cpp rack.h [multibyte]


From: eliot-dev
Subject: [Eliot-dev] eliot/game rack.cpp rack.h [multibyte]
Date: Sun, 08 Jan 2006 11:38:52 +0000

CVSROOT:        /sources/eliot
Module name:    eliot
Branch:         multibyte
Changes by:     Olivier Teulière <address@hidden>      06/01/08 11:38:52

Modified files:
        game           : rack.cpp rack.h 

Log message:
        Wide strings were forgotten here

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/rack.cpp.diff?only_with_tag=multibyte&tr1=1.5.2.1&tr2=1.5.2.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/rack.h.diff?only_with_tag=multibyte&tr1=1.7.2.1&tr2=1.7.2.2&r1=text&r2=text

Patches:
Index: eliot/game/rack.cpp
diff -u eliot/game/rack.cpp:1.5.2.1 eliot/game/rack.cpp:1.5.2.2
--- eliot/game/rack.cpp:1.5.2.1 Tue Jan  3 20:42:13 2006
+++ eliot/game/rack.cpp Sun Jan  8 11:38:52 2006
@@ -46,15 +46,15 @@
 }
 
 
-string Rack::toString()
+wstring Rack::toString()
 {
-  string rs("");
-  multiset<Tile>::const_iterator it;
-  for (it = m_tiles.begin(); it != m_tiles.end(); it++)
+    wstring rs;
+    multiset<Tile>::const_iterator it;
+    for (it = m_tiles.begin(); it != m_tiles.end(); it++)
     {
-      rs += it->toChar();
+        rs += it->toChar();
     }
-  return rs;
+    return rs;
 }
 
 /// Local Variables:
Index: eliot/game/rack.h
diff -u eliot/game/rack.h:1.7.2.1 eliot/game/rack.h:1.7.2.2
--- eliot/game/rack.h:1.7.2.1   Tue Jan  3 20:42:13 2006
+++ eliot/game/rack.h   Sun Jan  8 11:38:52 2006
@@ -55,7 +55,7 @@
     void clear()                { m_tiles.clear(); }
     void getTiles(list<Tile> &oTiles) const;
 
-    string toString();
+    wstring toString();
 
 private:
     multiset<Tile> m_tiles;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]