changeset 18351:2d3ecdfd9f29 draft

(svn r23187) -Fix (r23186): MSVC allowed non-const where const was mandatory
author yexo <yexo@openttd.org>
date Thu, 10 Nov 2011 20:07:14 +0000
parents 1e5a1400242f
children f4ceb989f582
files src/3rdparty/squirrel/squirrel/sqbaselib.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/3rdparty/squirrel/squirrel/sqbaselib.cpp
+++ b/src/3rdparty/squirrel/squirrel/sqbaselib.cpp
@@ -485,7 +485,7 @@
 
 
 //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 @@
 {
 	HSQUIRRELVM v;
 	SQInteger func;
-	bool operator() (SQObjectPtr &a, SQObjectPtr &b) const
+	bool operator() (const SQObjectPtr &a, const SQObjectPtr &b) const
 	{
 		SQInteger res;
 		SQObjectPtr dummy;