From 5b4c0da9d0dbe219234feb85ba4cd6d94425d12b Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 11 May 2014 11:54:54 -0700 Subject: Move the hex digits out of _q_toHex Avoids them being duplicated several times in QtCore Change-Id: Idee0168ed9d452a572ad46e2a14d2d4d3c7d2f7e Reviewed-by: Robin Burchell Reviewed-by: Olivier Goffart --- src/corelib/plugin/quuid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib/plugin') 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 void _q_toHex(Char *&dst, Integral value) { - static const char digits[] = "0123456789abcdef"; - value = qToBigEndian(value); const char* p = reinterpret_cast(&value); -- cgit v1.2.3