mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
Added CStr and some other things to precompiled.h, to reduce build times.
Altered CStr/UniDoubler's macros, to avoid polluting/conflicting/etc. Fixed headers in non-PCH builds. Used the _d version of vorbisfile*.lib in Debug builds. This was SVN commit r2366.
This commit is contained in:
@@ -47,7 +47,7 @@ bool __ParseString<CRect>(const CStr& Value, CRect &Output)
|
||||
// Use the parser to parse the values
|
||||
CParser& parser (CParserCache::Get("_$value_$value_$value_$value_"));
|
||||
|
||||
string str = (const TCHAR*)Value;
|
||||
string str = Value;
|
||||
|
||||
CParserLine line;
|
||||
line.ParseString(parser, str);
|
||||
@@ -124,7 +124,7 @@ bool __ParseString<CSize>(const CStr& Value, CSize &Output)
|
||||
// Use the parser to parse the values
|
||||
CParser& parser (CParserCache::Get("_$value_$value_"));
|
||||
|
||||
string str = (const TCHAR*)Value;
|
||||
string str = Value;
|
||||
|
||||
CParserLine line;
|
||||
line.ParseString(parser, str);
|
||||
@@ -288,7 +288,7 @@ CRect CClientArea::GetClientArea(const CRect &parent) const
|
||||
bool CClientArea::SetClientArea(const CStr& Value)
|
||||
{
|
||||
// Get value in STL string format
|
||||
string _Value = (const TCHAR*)Value;
|
||||
string _Value = Value;
|
||||
|
||||
// This might lack incredible speed, but since all XML files
|
||||
// are read at startup, reading 100 client areas will be
|
||||
|
||||
Reference in New Issue
Block a user