[Orxonox-commit 3402] r8089 - code/branches/kicklib/src/libraries/core

rgrieder at orxonox.net rgrieder at orxonox.net
Fri Mar 18 05:00:59 CET 2011


Author: rgrieder
Date: 2011-03-18 05:00:59 +0100 (Fri, 18 Mar 2011)
New Revision: 8089

Modified:
   code/branches/kicklib/src/libraries/core/PathConfig.cc
Log:
Making a strange fix. Apparently this fixes a strange problem occurring on an ArchLinux system using boost 1.46.0.
Inserting an additional line of nonsense code helps too though...

Modified: code/branches/kicklib/src/libraries/core/PathConfig.cc
===================================================================
--- code/branches/kicklib/src/libraries/core/PathConfig.cc	2011-03-17 23:08:44 UTC (rev 8088)
+++ code/branches/kicklib/src/libraries/core/PathConfig.cc	2011-03-18 04:00:59 UTC (rev 8089)
@@ -272,9 +272,9 @@
         // Iterate through all files
         while (file != end)
         {
-            const std::string& filename = file->BOOST_LEAF_FUNCTION();
+            std::string filename = file->BOOST_LEAF_FUNCTION();
 
-            // Check if the file ends with the exension in question
+            // Check if the file ends with the extension in question
             if (filename.size() > moduleextensionlength)
             {
                 if (filename.substr(filename.size() - moduleextensionlength) == moduleextension)




More information about the Orxonox-commit mailing list