diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2021-05-08 12:27:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 12:27:38 -0400 |
| commit | a357277e412b5e8f0f2f0578c7d7d213e8744c8d (patch) | |
| tree | 353e7aa38aef392c6f337d6a1a04d3438f00def5 /ZAPD/ZRoom/Commands/SetTimeSettings.cpp | |
| parent | 547c9b200d1dff745dee694c20a9f9e8e409a11d (diff) | |
Add const to most functions that need it and remove all "using namespace std" (#132)
* started on basic type errors
* Done. For now
* remove libgfxd binary
* const
* no more namespace std
* revert alloca
* re add a few missing consts
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetTimeSettings.cpp')
| -rw-r--r-- | ZAPD/ZRoom/Commands/SetTimeSettings.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ZAPD/ZRoom/Commands/SetTimeSettings.cpp b/ZAPD/ZRoom/Commands/SetTimeSettings.cpp index 0f5d449..582a078 100644 --- a/ZAPD/ZRoom/Commands/SetTimeSettings.cpp +++ b/ZAPD/ZRoom/Commands/SetTimeSettings.cpp @@ -2,8 +2,6 @@ #include "../../BitConverter.h" #include "../../StringHelper.h" -using namespace std; - SetTimeSettings::SetTimeSettings(ZRoom* nZRoom, std::vector<uint8_t> rawData, uint32_t rawDataIndex) : ZRoomCommand(nZRoom, rawData, rawDataIndex) { @@ -12,19 +10,19 @@ SetTimeSettings::SetTimeSettings(ZRoom* nZRoom, std::vector<uint8_t> rawData, ui unk = rawData[rawDataIndex + 6]; } -string SetTimeSettings::GenerateSourceCodePass1(string roomName, uint32_t baseAddress) +std::string SetTimeSettings::GenerateSourceCodePass1(std::string roomName, uint32_t baseAddress) { return StringHelper::Sprintf( "%s 0x00, 0x00, 0x00, 0x%02X, 0x%02X, 0x%02X", ZRoomCommand::GenerateSourceCodePass1(roomName, baseAddress).c_str(), hour, min, unk); } -string SetTimeSettings::GetCommandCName() +std::string SetTimeSettings::GetCommandCName() const { return "SCmdTimeSettings"; } -RoomCommand SetTimeSettings::GetRoomCommand() +RoomCommand SetTimeSettings::GetRoomCommand() const { return RoomCommand::SetTimeSettings; }
\ No newline at end of file |
