Changeset 1953 for code/branches/objecthierarchy/src/orxonox/overlays
- Timestamp:
- Oct 19, 2008, 9:50:36 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/overlays
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/overlays/console/InGameConsole.cc
r1879 r1953 613 613 @return The converted string 614 614 */ 615 /*static*/ Ogre::UTFString InGameConsole::convert2UTF( std::string s)615 /*static*/ Ogre::UTFString InGameConsole::convert2UTF(const std::string& text) 616 616 { 617 617 Ogre::UTFString utf; 618 618 Ogre::UTFString::code_point cp; 619 for (unsigned int i = 0; i < s.size(); ++i)620 { 621 cp = s[i];619 for (unsigned int i = 0; i < text.size(); ++i) 620 { 621 cp = text[i]; 622 622 cp &= 0xFF; 623 623 utf.append(1, cp); -
code/branches/objecthierarchy/src/orxonox/overlays/console/InGameConsole.h
r1879 r1953 61 61 static void closeConsole(); 62 62 63 static Ogre::UTFString convert2UTF(const std::string& text); 64 63 65 private: // functions 64 66 InGameConsole(const InGameConsole& other); … … 83 85 // config value related 84 86 void bHidesAllInputChanged(); 85 86 static Ogre::UTFString convert2UTF(std::string s);87 87 88 88 private: // variables
Note: See TracChangeset
for help on using the changeset viewer.