1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-18 19:47:15 +01:00

Rename method.

This commit is contained in:
Sandu Liviu Catalin 2021-07-04 03:39:41 +03:00
parent 8fc23a837a
commit 812cbcf332
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ void Register_Dictionary(HSQUIRRELVM vm, Table & ns)
.Func(_SC("Set"), &SqDictionary::Set) .Func(_SC("Set"), &SqDictionary::Set)
.Func(_SC("Clear"), &SqDictionary::Clear) .Func(_SC("Clear"), &SqDictionary::Clear)
.Func(_SC("Erase"), &SqDictionary::Erase) .Func(_SC("Erase"), &SqDictionary::Erase)
.Func(_SC("Exists"), &SqDictionary::Exists) .Func(_SC("Contains"), &SqDictionary::Contains)
.CbFunc(_SC("Each"), &SqDictionary::Each) .CbFunc(_SC("Each"), &SqDictionary::Each)
.CbFunc(_SC("EachWith"), &SqDictionary::EachWith) .CbFunc(_SC("EachWith"), &SqDictionary::EachWith)
.CbFunc(_SC("While"), &SqDictionary::While) .CbFunc(_SC("While"), &SqDictionary::While)

View File

@ -234,7 +234,7 @@ struct SqDictionary
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Check whether an element exists. * Check whether an element exists.
*/ */
bool Exists(SqKeyHash k) const bool Contains(SqKeyHash k) const
{ {
for (auto & e : mC) for (auto & e : mC)
{ {