diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-05-11 11:54:54 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-14 20:10:03 +0200 |
commit | 5b4c0da9d0dbe219234feb85ba4cd6d94425d12b (patch) | |
tree | f9a1bb4c646cdfacdb9e5ec2d3dfe821b7c8e85c /src/corelib/plugin | |
parent | 8e5e9d7987d0251fa61e24acbf6171879df3ae16 (diff) |
Move the hex digits out of _q_toHex
Avoids them being duplicated several times in QtCore
Change-Id: Idee0168ed9d452a572ad46e2a14d2d4d3c7d2f7e
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r-- | src/corelib/plugin/quuid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/quuid.cpp b/src/corelib/plugin/quuid.cpp index 183a16a7ad..ac66bd00ce 100644 --- a/src/corelib/plugin/quuid.cpp +++ b/src/corelib/plugin/quuid.cpp @@ -50,11 +50,11 @@ #endif QT_BEGIN_NAMESPACE +static const char digits[] = "0123456789abcdef"; + template <class Char, class Integral> void _q_toHex(Char *&dst, Integral value) { - static const char digits[] = "0123456789abcdef"; - value = qToBigEndian(value); const char* p = reinterpret_cast<const char*>(&value); |