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:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user