some simple size_t additions and set the homepage in the ingame browser

This commit is contained in:
DarthArgus
2016-06-05 14:12:04 -07:00
parent 4e59befe09
commit a1f79e65bd
6 changed files with 8 additions and 15 deletions
@@ -907,13 +907,6 @@ bool VertexSorterX ( Vector const & A, Vector const & B )
void BuildConvexHull ( VertexList const & verts, VertexList & outPoly )
{
VertexList sortedVerts = verts;
std::sort(sortedVerts.begin(),sortedVerts.end(),VertexSorterX);
int count = verts.size();
//BuildConvexHull( sortedVerts.begin(), count, outPoly );
}
// ----------------------------------------------------------------------
@@ -146,7 +146,7 @@ inline char *DuplicateString(const char *source)
if (!source)
return NULL;
const uint length = strlen(source)+1;
const size_t length = strlen(source)+1;
char *result = NON_NULL (new char[length]);
memcpy(result, source, length);
return result;
@@ -171,10 +171,10 @@ inline char *DuplicateStringWithToLower(const char *source)
if (!source)
return NULL;
const uint length = strlen(source)+1;
const size_t length = strlen(source)+1;
char *result = NON_NULL (new char[length]);
for (uint i = 0; i < length; ++i)
for (size_t i = 0; i < length; ++i)
result[i] = static_cast<char>(tolower(source[i]));
return result;