summaryrefslogtreecommitdiffstats
path: root/tests/auto/compiler
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@collabora.co.uk>2010-07-18 23:05:44 +0200
committerAndreas Kling <andreas.kling@nokia.com>2010-07-18 23:05:47 +0200
commitc6812138900b05012831e0f94d7d00aeac86cc2f (patch)
tree75c1fd3fbe54fbeb0b131bb71032c813ca6fd086 /tests/auto/compiler
parent53d3083eecf88a20bc36ada43942c7a18677af62 (diff)
Remove qMemCopy() usage from all .cpp files of Qt itself.
This is (supposedly) more efficient as the compiler can optimise it to a builtin, per Thiago. Merge-request: 2430 Reviewed-by: Andreas Kling <andreas.kling@nokia.com>
Diffstat (limited to 'tests/auto/compiler')
-rw-r--r--tests/auto/compiler/tst_compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/compiler/tst_compiler.cpp b/tests/auto/compiler/tst_compiler.cpp
index 368620d3a4..90eb357fcb 100644
--- a/tests/auto/compiler/tst_compiler.cpp
+++ b/tests/auto/compiler/tst_compiler.cpp
@@ -640,7 +640,7 @@ static inline double qt_inf()
#endif
union { uchar c[8]; double d; } returnValue;
- qMemCopy(returnValue.c, bytes, sizeof(returnValue.c));
+ memcpy(returnValue.c, bytes, sizeof(returnValue.c));
return returnValue.d;
}