From b314b2b844c83b84ad9229c1c16b25caf08b5523 Mon Sep 17 00:00:00 2001 From: Sze Howe Koh Date: Sat, 17 Aug 2013 08:46:55 +0800 Subject: [PATCH] Rename template parameter: "I" -> "II" C99 defines the "I" macro in complex.h. qobjectdefs_impl.h can be indirectly included in user code, which raises the possibility of a name clash if the user's compiler supports C99 and the user includes complex.h Change-Id: Ie79ec7baf2d49a34b66a01556c7e57324303dc04 Reviewed-by: Thiago Macieira --- src/corelib/kernel/qobjectdefs_impl.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/corelib/kernel/qobjectdefs_impl.h b/src/corelib/kernel/qobjectdefs_impl.h index 4f44d9204e6..d775ef1b657 100644 --- a/src/corelib/kernel/qobjectdefs_impl.h +++ b/src/corelib/kernel/qobjectdefs_impl.h @@ -496,22 +496,22 @@ namespace QtPrivate { template struct FunctionPointer { enum {ArgumentCount = -1}; }; template struct FunctorCall; - template - struct FunctorCall, List, R, Function> { + template + struct FunctorCall, List, R, Function> { static void call(Function f, void **arg) { - f((*reinterpret_cast::Type *>(arg[I+1]))...), ApplyReturnValue(arg[0]); + f((*reinterpret_cast::Type *>(arg[II+1]))...), ApplyReturnValue(arg[0]); } }; - template - struct FunctorCall, List, R, SlotRet (Obj::*)(SlotArgs...)> { + template + struct FunctorCall, List, R, SlotRet (Obj::*)(SlotArgs...)> { static void call(SlotRet (Obj::*f)(SlotArgs...), Obj *o, void **arg) { - (o->*f)((*reinterpret_cast::Type *>(arg[I+1]))...), ApplyReturnValue(arg[0]); + (o->*f)((*reinterpret_cast::Type *>(arg[II+1]))...), ApplyReturnValue(arg[0]); } }; - template - struct FunctorCall, List, R, SlotRet (Obj::*)(SlotArgs...) const> { + template + struct FunctorCall, List, R, SlotRet (Obj::*)(SlotArgs...) const> { static void call(SlotRet (Obj::*f)(SlotArgs...) const, Obj *o, void **arg) { - (o->*f)((*reinterpret_cast::Type *>(arg[I+1]))...), ApplyReturnValue(arg[0]); + (o->*f)((*reinterpret_cast::Type *>(arg[II+1]))...), ApplyReturnValue(arg[0]); } };