summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/ZRoomCommand.cpp
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2021-04-24 16:42:52 -0400
committerGitHub <noreply@github.com>2021-04-24 16:42:52 -0400
commit6d27dbaab3b32ccebb076895fac3cc6aa3240d6c (patch)
tree601c6ab5bef2f93b6d6ef4ba5506eb04dfb59c9f /ZAPD/ZRoom/ZRoomCommand.cpp
parentee8bdea252db4c764f4a2567c32754118fdce10b (diff)
Fix most -Wall warnings (#115)
* started on basic type errors * Done. For now * remove libgfxd binary * Most warnings fixed * Fix conflicts and new warnings * Makefile * Sig * Clang format * destructor * Add a bunch of destructors * clear the scalars vector after freeing the elements * PR fixes (Anghelo Alf) * Fix most clang -Wall warnings
Diffstat (limited to 'ZAPD/ZRoom/ZRoomCommand.cpp')
-rw-r--r--ZAPD/ZRoom/ZRoomCommand.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/ZAPD/ZRoom/ZRoomCommand.cpp b/ZAPD/ZRoom/ZRoomCommand.cpp
index 370e198..cf70de0 100644
--- a/ZAPD/ZRoom/ZRoomCommand.cpp
+++ b/ZAPD/ZRoom/ZRoomCommand.cpp
@@ -3,19 +3,23 @@
using namespace std;
-ZRoomCommand::ZRoomCommand(ZRoom* nZRoom, std::vector<uint8_t> rawData, int rawDataIndex)
+ZRoomCommand::ZRoomCommand(ZRoom* nZRoom, std::vector<uint8_t> rawData, uint32_t rawDataIndex)
{
cmdID = (RoomCommand)rawData[rawDataIndex];
cmdAddress = rawDataIndex;
zRoom = nZRoom;
}
-string ZRoomCommand::GenerateSourceCodePass1(string roomName, int baseAddress)
+ZRoomCommand::~ZRoomCommand()
+{
+}
+
+string ZRoomCommand::GenerateSourceCodePass1(string roomName, uint32_t baseAddress)
{
return StringHelper::Sprintf("0x%02X,", (uint8_t)cmdID);
}
-string ZRoomCommand::GenerateSourceCodePass2(string roomName, int baseAddress)
+string ZRoomCommand::GenerateSourceCodePass2(string roomName, uint32_t baseAddress)
{
return "";
}
@@ -40,7 +44,7 @@ std::string ZRoomCommand::PreGenSourceFiles()
return std::string();
}
-int32_t ZRoomCommand::GetRawDataSize()
+size_t ZRoomCommand::GetRawDataSize()
{
return 8;
}