From 2dcb3a86df3d832c9726fae65568990c2e4aafde Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 15:54:54 -0400 Subject: [PATCH] NDolphinIntegration: Prevent sign conversion warnings --- src/Editor/NDolphinIntegration.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/Editor/NDolphinIntegration.h b/src/Editor/NDolphinIntegration.h index 07f03d31..6d9a6be0 100644 --- a/src/Editor/NDolphinIntegration.h +++ b/src/Editor/NDolphinIntegration.h @@ -61,19 +61,19 @@ struct SQuickplayParameters void Write(const TString& kPath) const { CFileOutStream Stream(kPath, EEndian::BigEndian); - ASSERT( Stream.IsValid() ); + ASSERT(Stream.IsValid()); // Magic/Version - Stream.WriteLong(kParmsMagic); - Stream.WriteLong(kParmsVersion); + Stream.WriteULong(kParmsMagic); + Stream.WriteULong(kParmsVersion); // Parameters - Stream.WriteLong( Features.ToInt32() ); - Stream.WriteLong( BootWorldAssetID ); - Stream.WriteLong( BootAreaAssetID ); - Stream.WriteLong( 0 ); - Stream.WriteLongLong( BootAreaLayerFlags ); - SpawnTransform.Write( Stream ); + Stream.WriteULong(Features.ToInt32()); + Stream.WriteULong(BootWorldAssetID); + Stream.WriteULong(BootAreaAssetID); + Stream.WriteULong(0); + Stream.WriteULongLong(BootAreaLayerFlags); + SpawnTransform.Write(Stream); Stream.Close(); } @@ -88,7 +88,8 @@ class CQuickplayRelay : public QObject Q_OBJECT public: - CQuickplayRelay() {} + CQuickplayRelay() = default; + public slots: void QuickplayStarted(); void QuickplayFinished(int ReturnCode);