pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] r2551 - trunk/src


From: jave27
Subject: [Pingus-CVS] r2551 - trunk/src
Date: Thu, 8 Dec 2005 22:01:10 +0100

Author: jave27
Date: 2005-12-08 22:01:02 +0100 (Thu, 08 Dec 2005)
New Revision: 2551

Modified:
   trunk/src/file_dialog_listener.hxx
   trunk/src/pingus_menu.cxx
   trunk/src/pingus_menu.hxx
Log:
A little const string cleanup.

Modified: trunk/src/file_dialog_listener.hxx
===================================================================
--- trunk/src/file_dialog_listener.hxx  2005-12-08 20:57:06 UTC (rev 2550)
+++ trunk/src/file_dialog_listener.hxx  2005-12-08 21:01:02 UTC (rev 2551)
@@ -27,8 +27,8 @@
 
        class FileDialogListener {
        public:
-               virtual void save(std::string file, std::string filemask) { }
-               virtual void load(std::string file, std::string filemask) { }
+               virtual void save(const std::string &file, const std::string 
&filemask) { }
+               virtual void load(const std::string &file, const std::string 
&filemask) { }
        };      // class FileDialogListener
 
 }      // namespace Pingus

Modified: trunk/src/pingus_menu.cxx
===================================================================
--- trunk/src/pingus_menu.cxx   2005-12-08 20:57:06 UTC (rev 2550)
+++ trunk/src/pingus_menu.cxx   2005-12-08 21:01:02 UTC (rev 2551)
@@ -159,7 +159,7 @@
 }
 
 void
-PingusMenu::do_start(std::string filename)
+PingusMenu::do_start(const std::string &filename)
 { // Start the story or worldmap mode
   Sound::PingusSound::play_sound ("letsgo");
 
@@ -233,7 +233,7 @@
 }
 
 void
-PingusMenu::load(std::string file, std::string filemask)
+PingusMenu::load(const std::string &file, const std::string &filemask)
 {
        // Level
        if (filemask == ".pingus")

Modified: trunk/src/pingus_menu.hxx
===================================================================
--- trunk/src/pingus_menu.hxx   2005-12-08 20:57:06 UTC (rev 2550)
+++ trunk/src/pingus_menu.hxx   2005-12-08 21:01:02 UTC (rev 2551)
@@ -70,12 +70,12 @@
        /** Quit the game */
   void do_quit();
        /** Start the story/worldmap mode */
-       void do_start(std::string filename);
+       void do_start(const std::string &filename);
        /** Start the level editor */
        void do_edit();
 
        /** Use this to load the level or worldmap */
-       virtual void load(std::string file, std::string filemask);
+       virtual void load(const std::string &file, const std::string &filemask);
 
 public:
   PingusMenu (PingusMenuManager* m);





reply via email to

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