From 99d2885f9cc5da7d861cc66f72a06769f1c73de4 Mon Sep 17 00:00:00 2001 From: njohnson Date: Wed, 10 Sep 2025 21:56:08 -0400 Subject: [PATCH] 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. --- libs/xassets/xasset.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/xassets/xasset.h b/libs/xassets/xasset.h index 50d1dbe..3fc67e7 100644 --- a/libs/xassets/xasset.h +++ b/libs/xassets/xasset.h @@ -3,7 +3,7 @@ #include "xassettype.h" -#include +#include "xdatastream.h" #include #include #include @@ -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);