1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

plGenericVar => plString

- Also fixes a bug in plGenericType::CopyFrom, where doubles would get
  only half copied (and therefore become corrupt)
This commit is contained in:
2014-01-11 12:10:07 -08:00
parent a783642515
commit 0c1783b2f3
5 changed files with 53 additions and 141 deletions

View File

@ -198,11 +198,11 @@ void plCreatableListHelper::AddDouble( uint16_t id, double value )
AddItem( id, V, true );
}
const char * plCreatableListHelper::GetString( uint16_t id )
plString plCreatableListHelper::GetString( uint16_t id )
{
plCreatableGenericValue * V = plCreatableGenericValue::ConvertNoRef( GetItem( id ) );
if ( !V ) return nil;
return (const char *)V->Value();
if ( !V ) return plString::Null;
return (plString)V->Value();
}
int32_t plCreatableListHelper::GetInt( uint16_t id )

View File

@ -125,7 +125,7 @@ public:
// helpers for typed arguments
void AddString( uint16_t id, const char * value );
void AddString( uint16_t id, std::string & value );
const char * GetString( uint16_t id );
plString GetString( uint16_t id );
void AddInt( uint16_t id, int32_t value );
int32_t GetInt( uint16_t id );
void AddDouble( uint16_t id, double value );