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/ZVector.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/ZVector.cpp')
| -rw-r--r-- | ZAPD/ZVector.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ZAPD/ZVector.cpp b/ZAPD/ZVector.cpp index c84e4c6..011ed2a 100644 --- a/ZAPD/ZVector.cpp +++ b/ZAPD/ZVector.cpp @@ -66,7 +66,7 @@ void ZVector::ParseRawData() assert(this->scalars.size() == this->dimensions); } -size_t ZVector::GetRawDataSize() +size_t ZVector::GetRawDataSize() const { size_t size = 0; @@ -76,12 +76,12 @@ size_t ZVector::GetRawDataSize() return size; } -bool ZVector::DoesSupportArray() +bool ZVector::DoesSupportArray() const { return true; } -std::string ZVector::GetSourceTypeName() +std::string ZVector::GetSourceTypeName() const { if (dimensions == 3 && scalarType == ZSCALAR_F32) return "Vec3f"; @@ -102,7 +102,7 @@ std::string ZVector::GetSourceTypeName() } } -std::string ZVector::GetSourceValue() +std::string ZVector::GetSourceValue() const { std::vector<std::string> strings = std::vector<std::string>(); @@ -121,7 +121,7 @@ std::string ZVector::GetSourceOutputCode(const std::string& prefix) return ""; } -ZResourceType ZVector::GetResourceType() +ZResourceType ZVector::GetResourceType() const { return ZResourceType::Vector; }
\ No newline at end of file |
