From a357277e412b5e8f0f2f0578c7d7d213e8744c8d Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Sat, 8 May 2021 12:27:38 -0400 Subject: 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 --- ZAPD/ZVector.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ZAPD/ZVector.cpp') 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 strings = std::vector(); @@ -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 -- cgit v1.2.3