From a635344582a13d935631fbe930d79d3788359c8a Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 25 Nov 2016 16:35:10 -0500 Subject: Rename most ext fields names to be consistent with everything else, add accessors for many --- modules/memoserv/main/memoinfo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/memoserv/main/memoinfo.cpp') diff --git a/modules/memoserv/main/memoinfo.cpp b/modules/memoserv/main/memoinfo.cpp index 6fa8df8b1..aa5ca71e4 100644 --- a/modules/memoserv/main/memoinfo.cpp +++ b/modules/memoserv/main/memoinfo.cpp @@ -31,6 +31,7 @@ unsigned MemoInfoImpl::GetIndex(MemoServ::Memo *m) for (unsigned i = 0; i < memos.size(); ++i) if (this->GetMemo(i) == m) return i; +#warning "-1 unsigned?" return -1; // XXX wtf? } @@ -70,6 +71,16 @@ void MemoInfoImpl::SetMemoMax(const int16_t &i) Set(&MemoInfoType::memomax, i); } +bool MemoInfoImpl::IsHardMax() +{ + return Get(&MemoInfoType::hardmax); +} + +void MemoInfoImpl::SetHardMax(bool hardmax) +{ + Set(&MemoInfoType::hardmax, hardmax); +} + std::vector MemoInfoImpl::GetMemos() { return GetRefs(); -- cgit