From 72b1fffe825c35701e3f1aa6389c8cc4a99b9155 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 10 Nov 2011 20:07:14 +0000 Subject: (svn r23187) -Fix (r23186): MSVC allowed non-const where const was mandatory --- src/3rdparty/squirrel/squirrel/sqbaselib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/3rdparty') diff --git a/src/3rdparty/squirrel/squirrel/sqbaselib.cpp b/src/3rdparty/squirrel/squirrel/sqbaselib.cpp index fc90e97eb..b170ac336 100644 --- a/src/3rdparty/squirrel/squirrel/sqbaselib.cpp +++ b/src/3rdparty/squirrel/squirrel/sqbaselib.cpp @@ -485,7 +485,7 @@ static SQInteger array_resize(HSQUIRRELVM v) //QSORT ala Sedgewick -bool _qsort_compare(HSQUIRRELVM v,SQObjectPtr &arr,SQObjectPtr &a,SQObjectPtr &b,SQInteger func,SQInteger &ret) +bool _qsort_compare(HSQUIRRELVM v,SQObjectPtr &arr,const SQObjectPtr &a,const SQObjectPtr &b,SQInteger func,SQInteger &ret) { if(func < 0) { if(!v->ObjCmp(a,b,ret)) return false; @@ -511,7 +511,7 @@ struct qsort_cmp { HSQUIRRELVM v; SQInteger func; - bool operator() (SQObjectPtr &a, SQObjectPtr &b) const + bool operator() (const SQObjectPtr &a, const SQObjectPtr &b) const { SQInteger res; SQObjectPtr dummy; -- cgit v1.2.3-70-g09d2