pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/particles WeatherGenerator.cc,1.7,1.8


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/particles WeatherGenerator.cc,1.7,1.8 WeatherGenerator.hh,1.9,1.10
Date: 11 Jun 2002 18:28:39 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/particles
In directory dark:/tmp/cvs-serv30787/particles

Modified Files:
        WeatherGenerator.cc WeatherGenerator.hh 
Log Message:
replaced shared_ptr<WorldObj> with WorldObj*


Index: WeatherGenerator.cc
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/particles/WeatherGenerator.cc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- WeatherGenerator.cc 10 Jun 2002 13:03:35 -0000      1.7
+++ WeatherGenerator.cc 11 Jun 2002 18:28:37 -0000      1.8
@@ -23,13 +23,13 @@
 #include "RainGenerator.hh"
 #include "../boost/smart_ptr.hpp"
 
-boost::shared_ptr<WorldObj>
+WorldObj*
 WeatherGenerator::create(WeatherData data)
 {
   if (data.type == "snow")
-    return boost::shared_ptr<WorldObj>(new SnowGenerator());
+    return new SnowGenerator();
   else if (data.type == "rain")
-    return boost::shared_ptr<WorldObj>(new RainGenerator());
+    return new RainGenerator();
   else
     {
       throw PingusError ("WeatherGenerator: Unknown type: " + data.type);
@@ -37,3 +37,4 @@
 }
 
 /* EOF */
+

Index: WeatherGenerator.hh
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/particles/WeatherGenerator.hh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- WeatherGenerator.hh 10 Jun 2002 13:03:35 -0000      1.9
+++ WeatherGenerator.hh 11 Jun 2002 18:28:37 -0000      1.10
@@ -46,9 +46,10 @@
 
 
   /** Generate an WeatherGenerator which fits to the given data */
-  static boost::shared_ptr<WorldObj> create(WeatherData);
+  static WorldObj* create(WeatherData);
 };
 
 #endif
 
 /* EOF */
+




reply via email to

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