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/ZResource.h | |
| 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/ZResource.h')
| -rw-r--r-- | ZAPD/ZResource.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ZAPD/ZResource.h b/ZAPD/ZResource.h index 984974b..7ffe1d4 100644 --- a/ZAPD/ZResource.h +++ b/ZAPD/ZResource.h @@ -76,20 +76,20 @@ public: virtual void Save(const fs::path& outFolder); // Properties - virtual bool IsExternalResource(); - virtual bool DoesSupportArray(); // Can this type be wrapped in an <Array> node? - virtual std::string GetSourceTypeName(); - virtual ZResourceType GetResourceType(); - virtual std::string GetExternalExtension(); + virtual bool IsExternalResource() const; + virtual bool DoesSupportArray() const; // Can this type be wrapped in an <Array> node? + virtual std::string GetSourceTypeName() const; + virtual ZResourceType GetResourceType() const; + virtual std::string GetExternalExtension() const; // Getters/Setters - const std::string& GetName() const; + std::string GetName() const; void SetName(std::string nName); const std::string& GetOutName() const; void SetOutName(std::string nName); - virtual uint32_t GetRawDataIndex(); + virtual uint32_t GetRawDataIndex() const; virtual void SetRawDataIndex(uint32_t value); - virtual size_t GetRawDataSize(); + virtual size_t GetRawDataSize() const; virtual const std::vector<uint8_t>& GetRawData() const; virtual void SetRawData(const std::vector<uint8_t>& nData); bool WasDeclaredInXml() const; |
