summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qvariant.cpp
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2011-11-15 13:49:52 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-15 18:33:58 +0100
commit5bc35276fb38385af4f1cd6b1a9ea7195a1d0d86 (patch)
tree66d7a847bfad6dbf6b6189a78d9cb75a789ff380 /src/corelib/kernel/qvariant.cpp
parent202127f860208c21145e05685bc54219e1655dbd (diff)
Hide QVariant helper classes in a namespace.
Moving these classes to an unnamed namespace reduced chances of a name conflict and size of executable. GCC 4.6 in release mode produces a 5kB smaller binary. Change-Id: Ie1819a88180f9db1cd32cc59ea6fe268ecbd5813 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/kernel/qvariant.cpp')
-rw-r--r--src/corelib/kernel/qvariant.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp
index 894ebcbb80..0afeaa02d6 100644
--- a/src/corelib/kernel/qvariant.cpp
+++ b/src/corelib/kernel/qvariant.cpp
@@ -73,6 +73,7 @@ QT_BEGIN_NAMESPACE
# define FLT_DIG 6
#endif
+namespace {
template<typename T>
struct TypeDefiniton {
static const bool IsAvailable = true;
@@ -99,6 +100,7 @@ struct CoreTypesFilter {
static const bool IsAccepted = QTypeModuleInfo<T>::IsCore && TypeDefiniton<T>::IsAvailable;
};
};
+} // namspace
static void construct(QVariant::Private *x, const void *copy)
{