- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/ConsoleCommandCompilation.cc
r6185 r6394 35 35 #include "util/Debug.h" 36 36 #include "util/ExprParser.h" 37 #include "util/StringUtils.h" 37 38 #include "ConsoleCommand.h" 38 39 … … 142 143 } 143 144 144 std::string output = "";145 std::string output; 145 146 while (file.good() && !file.eof()) 146 147 { … … 166 167 COUT(3) << "Greetings from the restaurant at the end of the universe." << std::endl; 167 168 } 168 if ( expr.getRemains() != "")169 if (!expr.getRemains().empty()) 169 170 { 170 COUT(2) << "Warning: Expression could not be parsed to the end! Remains: '" << expr.getRemains() << "'"<< std::endl;171 COUT(2) << "Warning: Expression could not be parsed to the end! Remains: '" << expr.getRemains() << '\'' << std::endl; 171 172 } 172 173 return static_cast<float>(expr.getResult());
Note: See TracChangeset
for help on using the changeset viewer.