Updated some code to use the STL

This commit is contained in:
Subv committed 2013-12-29 15:47:23 -05:00
1 parent d234d0f3d0
commit d30eecf4e4
2 files changed
+3 -9

No files matched your search

+2 -8
View File
@@ -54,15 +54,9 @@ void Utils::CreateDir( const std::string& Path )
#endif
}
void Utils::Reverse(char word[])
void Utils::Reverse(std::string& str)
{
int len = strlen(word);
for (int i = 0;i < len / 2; i++)
{
word[i] ^= word[len-i-1];
word[len-i-1] ^= word[i];
word[i] ^= word[len-i-1];
}
std::reverse(str.begin(), str.end());
}
Vector3 Utils::ToRecast(const Vector3& val )