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>
# define FLT_DIG 6
#endif
+namespace {
template<typename T>
struct TypeDefiniton {
static const bool IsAvailable = true;
static const bool IsAccepted = QTypeModuleInfo<T>::IsCore && TypeDefiniton<T>::IsAvailable;
};
};
+} // namspace
static void construct(QVariant::Private *x, const void *copy)
{
Q_CORE_EXPORT const QVariant::Handler *qcoreVariantHandler();
+namespace {
template<typename T>
struct TypeDefiniton {
static const bool IsAvailable = true;
static const bool IsAccepted = (QTypeModuleInfo<T>::IsCore || QTypeModuleInfo<T>::IsGui) && TypeDefiniton<T>::IsAvailable;
};
};
+} // namespace
static void construct(QVariant::Private *x, const void *copy)
{