[nx-hb] Change order of methods to match style.

This commit is contained in:
jakcron 2018-06-24 13:21:52 +08:00
parent 4d6eb6f694
commit 81a8aaf68a
2 changed files with 9 additions and 9 deletions

View file

@ -35,9 +35,9 @@ namespace nx
AssetHeader();
AssetHeader(const AssetHeader& other);
void operator=(const AssetHeader& other);
bool operator==(const AssetHeader& other) const;
bool operator!=(const AssetHeader& other) const;
void operator=(const AssetHeader& other);
// export/import binary
void toBytes();

View file

@ -10,6 +10,14 @@ nx::AssetHeader::AssetHeader(const AssetHeader& other)
*this = other;
}
void nx::AssetHeader::operator=(const AssetHeader& other)
{
mRawBinary = other.mRawBinary;
mIconInfo = other.mIconInfo;
mNacpInfo = other.mNacpInfo;
mRomfsInfo = other.mRomfsInfo;
}
bool nx::AssetHeader::operator==(const AssetHeader& other) const
{
return (mIconInfo == other.mIconInfo) \
@ -22,14 +30,6 @@ bool nx::AssetHeader::operator!=(const AssetHeader& other) const
return !(*this == other);
}
void nx::AssetHeader::operator=(const AssetHeader& other)
{
mRawBinary = other.mRawBinary;
mIconInfo = other.mIconInfo;
mNacpInfo = other.mNacpInfo;
mRomfsInfo = other.mRomfsInfo;
}
void nx::AssetHeader::toBytes()
{
mRawBinary.alloc(sizeof(sAssetHeader));