mirror of
https://github.com/SWG-Source/client-tools.git
synced 2026-10-13 05:12:52 -04:00
some simple size_t additions and set the homepage in the ingame browser
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user