summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstringmatcher.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@collabora.co.uk>2010-07-18 21:05:44 (GMT)
committerAndreas Kling <andreas.kling@nokia.com>2010-07-18 21:05:47 (GMT)
commitc6812138900b05012831e0f94d7d00aeac86cc2f (patch)
tree75c1fd3fbe54fbeb0b131bb71032c813ca6fd086 /src/corelib/tools/qstringmatcher.cpp
parent53d3083eecf88a20bc36ada43942c7a18677af62 (diff)
downloadQt-c6812138900b05012831e0f94d7d00aeac86cc2f.zip
Qt-c6812138900b05012831e0f94d7d00aeac86cc2f.tar.gz
Qt-c6812138900b05012831e0f94d7d00aeac86cc2f.tar.bz2
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 'src/corelib/tools/qstringmatcher.cpp')
-rw-r--r--src/corelib/tools/qstringmatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qstringmatcher.cpp b/src/corelib/tools/qstringmatcher.cpp
index ff13624..80a8457 100644
--- a/src/corelib/tools/qstringmatcher.cpp
+++ b/src/corelib/tools/qstringmatcher.cpp
@@ -208,7 +208,7 @@ QStringMatcher &QStringMatcher::operator=(const QStringMatcher &other)
if (this != &other) {
q_pattern = other.q_pattern;
q_cs = other.q_cs;
- qMemCopy(q_data, other.q_data, sizeof(q_data));
+ memcpy(q_data, other.q_data, sizeof(q_data));
}
return *this;
}