summaryrefslogtreecommitdiff
path: root/ZAPD/ZMtx.cpp
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2021-05-08 12:27:38 -0400
committerGitHub <noreply@github.com>2021-05-08 12:27:38 -0400
commita357277e412b5e8f0f2f0578c7d7d213e8744c8d (patch)
tree353e7aa38aef392c6f337d6a1a04d3438f00def5 /ZAPD/ZMtx.cpp
parent547c9b200d1dff745dee694c20a9f9e8e409a11d (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/ZMtx.cpp')
-rw-r--r--ZAPD/ZMtx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ZAPD/ZMtx.cpp b/ZAPD/ZMtx.cpp
index 6da80a8..7beadee 100644
--- a/ZAPD/ZMtx.cpp
+++ b/ZAPD/ZMtx.cpp
@@ -34,12 +34,12 @@ void ZMtx::ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_
DeclareVar("", "");
}
-size_t ZMtx::GetRawDataSize()
+size_t ZMtx::GetRawDataSize() const
{
return 64;
}
-void ZMtx::DeclareVar(const std::string& prefix, const std::string& bodyStr)
+void ZMtx::DeclareVar(const std::string& prefix, const std::string& bodyStr) const
{
std::string auxName = name;
@@ -86,12 +86,12 @@ std::string ZMtx::GetDefaultName(const std::string& prefix, uint32_t address)
return StringHelper::Sprintf("%sMtx_%06X", prefix.c_str(), address);
}
-std::string ZMtx::GetSourceTypeName()
+std::string ZMtx::GetSourceTypeName() const
{
return "Mtx";
}
-ZResourceType ZMtx::GetResourceType()
+ZResourceType ZMtx::GetResourceType() const
{
return ZResourceType::Mtx;
}