mirror of
https://bitbucket.org/theswgsource/client-tools-1.2.git
synced 2026-01-16 23:04:40 -05: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;
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>.\..\..\..\..\..\..\compile\win32\dpvs\Release\</OutDir>
|
||||
<IntDir>.\release\</IntDir>
|
||||
<IntDir>.\..\..\..\..\..\..\compile\win32\dpvs\Release\</IntDir>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='IntelCPP|Win32'">
|
||||
|
||||
@@ -164,11 +164,11 @@ private:
|
||||
// that this must be large enough to preserve
|
||||
// alignment.
|
||||
static size_t _STLP_CALL __extra_before_chunk() {
|
||||
return (long)__extra_before/sizeof(value_type)+
|
||||
return (size_t)((long)__extra_before/sizeof(value_type))+
|
||||
(size_t)((long)__extra_before%sizeof(value_type)>0);
|
||||
}
|
||||
static size_t _STLP_CALL __extra_after_chunk() {
|
||||
return (long)__extra_after/sizeof(value_type)+
|
||||
return (size_t)((long)__extra_after/sizeof(value_type))+
|
||||
(size_t)((long)__extra_after%sizeof(value_type)>0);
|
||||
}
|
||||
public:
|
||||
|
||||
@@ -337,7 +337,7 @@ template <class _CharT, class _Traits, class _Alloc> __size_type__
|
||||
basic_string<_CharT,_Traits,_Alloc> ::find(const _CharT* __s, size_type __pos, size_type __n) const
|
||||
{
|
||||
if (__pos + __n > size())
|
||||
return npos;
|
||||
return (size_t) npos;
|
||||
else {
|
||||
const const_pointer __result =
|
||||
_STLP_STD::search((const _CharT*)this->_M_start + __pos, (const _CharT*)this->_M_finish,
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
namespace browserNamespace
|
||||
{
|
||||
std::string s_homePage = "www.StarWarsGalaxies.com";
|
||||
std::string s_homePage = "beta.stellabellum.net";
|
||||
}
|
||||
|
||||
using namespace browserNamespace;
|
||||
|
||||
Reference in New Issue
Block a user