Fix: Replace QDataStream with XDataStream
This commit replaces the use of `QDataStream` with `XDataStream` in the `XAsset` class. This aligns the code with the current XAssets framework and promotes consistency.
This commit is contained in:
parent
0545bfe642
commit
99d2885f9c
@ -3,7 +3,7 @@
|
||||
|
||||
#include "xassettype.h"
|
||||
|
||||
#include <QDataStream>
|
||||
#include "xdatastream.h"
|
||||
#include <QString>
|
||||
#include <QDebug>
|
||||
#include <QIODevice>
|
||||
@ -12,7 +12,7 @@ class XAsset
|
||||
{
|
||||
public:
|
||||
XAsset();
|
||||
virtual ~XAsset();
|
||||
virtual ~XAsset() = default;
|
||||
|
||||
void SetPtr(qint32 aPtr);
|
||||
qint32 GetPtr() const;
|
||||
@ -27,8 +27,8 @@ public:
|
||||
bool IsDebug() const;
|
||||
|
||||
virtual void Clear();
|
||||
virtual void ParsePtr(QDataStream *aStream, bool aDataFlag = true);
|
||||
virtual void ParseData(QDataStream *aStream) = 0;
|
||||
virtual void ParsePtr(XDataStream *aStream, bool aDataFlag = true);
|
||||
virtual void ParseData(XDataStream *aStream) = 0;
|
||||
|
||||
static XAsset* Create(XAssetType aAssetType);
|
||||
static QString XAssetTypeToString(XAssetType type);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user