Changeset 6394 for code/branches/presentation2/src/orxonox/overlays
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- Location:
- code/branches/presentation2/src/orxonox/overlays
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/overlays/InGameConsole.cc
r6375 r6394 318 318 this->print(this->shell_->getInput(), Shell::Input, 0); 319 319 320 if (this->shell_->getInput() == "" || this->shell_->getInput().size() == 0)320 if (this->shell_->getInput().empty()) 321 321 this->inputWindowStart_ = 0; 322 322 } -
code/branches/presentation2/src/orxonox/overlays/Map.cc
r6218 r6394 49 49 #include <OgreViewport.h> 50 50 51 #include "util/StringUtils.h" 51 52 #include "core/ConsoleCommand.h" 52 53 #include "core/CoreIncludes.h" -
code/branches/presentation2/src/orxonox/overlays/OrxonoxOverlay.cc
r6387 r6394 45 45 #include "util/Convert.h" 46 46 #include "util/Exception.h" 47 #include "util/StringUtils.h"48 47 #include "core/GameMode.h" 49 48 #include "core/CoreIncludes.h" … … 146 145 147 146 if (OrxonoxOverlay::overlays_s.find(this->getName()) != OrxonoxOverlay::overlays_s.end()) 148 COUT(1) << "Overlay names should be unique or you cannnot access them via console. Name: \"" << this->getName() << "\""<< std::endl;147 COUT(1) << "Overlay names should be unique or you cannnot access them via console. Name: \"" << this->getName() << '"' << std::endl; 149 148 150 149 OrxonoxOverlay::overlays_s[this->getName()] = this; … … 154 153 void OrxonoxOverlay::setBackgroundMaterial(const std::string& material) 155 154 { 156 if (this->background_ && material != "")155 if (this->background_ && !material.empty()) 157 156 this->background_->setMaterialName(material); 158 157 }
Note: See TracChangeset
for help on using the changeset viewer.