Add #pragma pack to FString
This commit is contained in:
parent
cfc1c4ef25
commit
6b753c54ed
|
@ -38,6 +38,10 @@ namespace fc
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class emptyFString
|
// class emptyFString
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#pragma pack(push)
|
||||||
|
#pragma pack(1)
|
||||||
|
|
||||||
class emptyFString
|
class emptyFString
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -58,6 +62,7 @@ private:
|
||||||
// Data Member
|
// Data Member
|
||||||
static const FString* empty_string;
|
static const FString* empty_string;
|
||||||
};
|
};
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
// emptyFString inline functions
|
// emptyFString inline functions
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -71,6 +71,9 @@ typedef std::vector<FString> FStringList;
|
||||||
// class FString
|
// class FString
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#pragma pack(push)
|
||||||
|
#pragma pack(1)
|
||||||
|
|
||||||
class FString
|
class FString
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -274,7 +277,7 @@ class FString
|
||||||
std::size_t bufsize;
|
std::size_t bufsize;
|
||||||
mutable char* c_string;
|
mutable char* c_string;
|
||||||
};
|
};
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
// FString inline functions
|
// FString inline functions
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue