Changeset 1889 for code/trunk/src/util/Convert.h
- Timestamp:
- Oct 6, 2008, 1:05:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/Convert.h
r1837 r1889 512 512 static bool convert(orxonox::Vector2* output, const std::string& input) 513 513 { 514 unsigned int opening_parenthesis, closing_parenthesis = input.find(')');514 size_t opening_parenthesis, closing_parenthesis = input.find(')'); 515 515 if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; } 516 516 … … 536 536 static bool convert(orxonox::Vector3* output, const std::string& input) 537 537 { 538 unsigned int opening_parenthesis, closing_parenthesis = input.find(')');538 size_t opening_parenthesis, closing_parenthesis = input.find(')'); 539 539 if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; } 540 540 … … 562 562 static bool convert(orxonox::Vector4* output, const std::string& input) 563 563 { 564 unsigned int opening_parenthesis, closing_parenthesis = input.find(')');564 size_t opening_parenthesis, closing_parenthesis = input.find(')'); 565 565 if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; } 566 566 … … 590 590 static bool convert(orxonox::Quaternion* output, const std::string& input) 591 591 { 592 unsigned int opening_parenthesis, closing_parenthesis = input.find(')');592 size_t opening_parenthesis, closing_parenthesis = input.find(')'); 593 593 if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; } 594 594 … … 618 618 static bool convert(orxonox::ColourValue* output, const std::string& input) 619 619 { 620 unsigned int opening_parenthesis, closing_parenthesis = input.find(')');620 size_t opening_parenthesis, closing_parenthesis = input.find(')'); 621 621 if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; } 622 622
Note: See TracChangeset
for help on using the changeset viewer.