From c747b4911ed4b1833d7f400d62d1835aba704278 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 22 Mar 2023 10:20:16 +0000 Subject: Removed C style arrays from the BlockEntity folder (#5005) * Removed C style arrays from the BlockEntity folder * Update for loops with size_t where there are no item grids involved * Fixed some casts in BrewingstandEntity.cpp --------- Co-authored-by: bibo38 Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> --- src/BlockEntities/SignEntity.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/BlockEntities/SignEntity.h') diff --git a/src/BlockEntities/SignEntity.h b/src/BlockEntities/SignEntity.h index b5abd9f51..4cc69ee22 100644 --- a/src/BlockEntities/SignEntity.h +++ b/src/BlockEntities/SignEntity.h @@ -34,10 +34,10 @@ public: // tolua_export void SetLines(const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4); /** Sets individual line (zero-based index) */ - void SetLine(int a_Index, const AString & a_Line); + void SetLine(size_t a_Index, const AString & a_Line); /** Retrieves individual line (zero-based index) */ - AString GetLine(int a_Index) const; + AString GetLine(size_t a_Index) const; // tolua_end @@ -48,5 +48,5 @@ public: // tolua_export private: - AString m_Line[4]; + std::array m_Line; } ; // tolua_export -- cgit v1.2.3