2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Some cleanup and a vararg plString usage fix

This commit is contained in:
2012-11-12 22:43:32 -08:00
parent 9cc3f404af
commit 075c535e2c
13 changed files with 28 additions and 14 deletions

View File

@ -376,11 +376,11 @@ public:
count = stream->ReadLE32();
if ( count != 0 )
{
char *buffer = new char[count];
plStringBuffer<char> str;
char *buffer = str.CreateWritableBuffer(count-1);
stream->ReadLE(count, buffer);
buffer[count-1] = 0;
fString = plString::FromUtf8(buffer, count);
delete [] buffer;
fString = str;
}
else
fString = plString::Null;

View File

@ -51,6 +51,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pyGUIControl.h"
#include "pyGlueHelpers.h"
#include <string>
class pyColor;
class pfGUIColorScheme;

View File

@ -52,6 +52,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnKeyedObject/plKey.h"
#include "pyGlueHelpers.h"
#include "pnKeyedObject/plUoid.h"
#include <string>
class pfGUIPopUpMenu;
class pyColor;

View File

@ -49,7 +49,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
//////////////////////////////////////////////////////////////////////
#include "pyGlueHelpers.h"
#include <string>
#include <vector>
class cyAnimation;
class pyImage;

View File

@ -51,6 +51,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pyGlueHelpers.h"
#include "pnKeyedObject/plKey.h"
#include <string>
class pyPlayer
{

View File

@ -52,6 +52,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pyGlueHelpers.h"
#include "pnKeyedObject/plKey.h"
#include "hsTemplates.h"
#include <vector>
class pyMatrix44;