Revision: 2371
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2371&view=rev
Author:   ulteq
Date:     2012-01-28 01:14:01 +0000 (Sat, 28 Jan 2012)
Log Message:
-----------
[bugfixes] -Codechange: Replaced boost with ogre function.

Modified Paths:
--------------
    branches/bugfixes/source/main/gui/LobbyGUI.cpp

Modified: branches/bugfixes/source/main/gui/LobbyGUI.cpp
===================================================================
--- branches/bugfixes/source/main/gui/LobbyGUI.cpp      2012-01-27 21:35:16 UTC 
(rev 2370)
+++ branches/bugfixes/source/main/gui/LobbyGUI.cpp      2012-01-28 01:14:01 UTC 
(rev 2371)
@@ -32,8 +32,6 @@
 
 #include "libircclient.h"
 
-#include <boost/algorithm/string/replace.hpp> // for replace_all
-
 // class
 
 LobbyGUI::LobbyGUI() : current_tab(0), rotatingWait(0)
@@ -95,7 +93,7 @@
 
        Ogre::String realName = name;
 
-       boost::algorithm::replace_all(name, "#", "##");
+       name = Ogre::StringUtil::replaceAll(name, "#", "##");
 
        tabctx_t *t = &tabs[name];
 
@@ -280,8 +278,8 @@
        Ogre::String realchannel = channel;
 
        // escape #
-       boost::algorithm::replace_all(channel, "#", "##");
-       boost::algorithm::replace_all(txt, "#", "##");
+       channel = Ogre::StringUtil::replaceAll(channel, "#", "##");
+       txt = Ogre::StringUtil::replaceAll(txt, "#", "##");
 
 
        if(tabs.find(channel) == tabs.end())
@@ -390,7 +388,7 @@
        }
 
        // unescape #
-       boost::algorithm::replace_all(command, "##", "#");
+       command = Ogre::StringUtil::replaceAll(command, "##", "#");
 
        if(current_tab->name.substr(0, 1) == "#")
        {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Rigsofrods-devel mailing list
Rigsofrods-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to