Explorar o código

Fix creating unnecessary temporary object with refcount from https://github.com/albertodemichelis/squirrel/commit/b4f600ebc04ba1ebbc2bad0b3dfb5f18d5b11686

mingodad %!s(int64=5) %!d(string=hai) anos
pai
achega
f9ec71e6d6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SquiLu/squirrel/sqtable.h

+ 1 - 1
SquiLu/squirrel/sqtable.h

@@ -12,7 +12,7 @@
 
 #define hashptr(p)  ((SQHash)(((SQInteger)p) >> 3))
 
-inline SQHash HashObj(const SQObjectPtr &key)
+inline SQHash HashObj(const SQObject &key)
 {
 	switch(sq_type(key)) {
 		case OT_STRING:		return _string(key)->_hash;