mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
remove some Symbian leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c4eb3a3ead
commit
c9a4ea5450
4 changed files with 5 additions and 28 deletions
|
@ -86,8 +86,6 @@ QT_BEGIN_HEADER
|
|||
# include "QtCore/qatomic_windowsce.h"
|
||||
#elif defined(QT_ARCH_X86_64)
|
||||
# include "QtCore/qatomic_x86_64.h"
|
||||
#elif defined(QT_ARCH_SYMBIAN)
|
||||
# include "QtCore/qatomic_symbian.h"
|
||||
#elif defined(QT_ARCH_SH)
|
||||
# include "QtCore/qatomic_sh.h"
|
||||
#elif defined(QT_ARCH_SH4A)
|
||||
|
|
|
@ -1334,7 +1334,7 @@ typedef int QNoImplicitBoolCast;
|
|||
// This logic must match the one in qmetatype.h
|
||||
#if defined(QT_COORD_TYPE)
|
||||
typedef QT_COORD_TYPE qreal;
|
||||
#elif defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE) || defined(QT_ARCH_SYMBIAN)
|
||||
#elif defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE)
|
||||
typedef float qreal;
|
||||
#else
|
||||
typedef double qreal;
|
||||
|
@ -1350,7 +1350,7 @@ Q_DECL_CONSTEXPR inline T qAbs(const T &t) { return t >= 0 ? t : -t; }
|
|||
Q_DECL_CONSTEXPR inline int qRound(qreal d)
|
||||
{ return d >= qreal(0.0) ? int(d + qreal(0.5)) : int(d - int(d-1) + qreal(0.5)) + int(d-1); }
|
||||
|
||||
#if defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE) || defined(QT_ARCH_SYMBIAN)
|
||||
#if defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE)
|
||||
Q_DECL_CONSTEXPR inline qint64 qRound64(double d)
|
||||
{ return d >= 0.0 ? qint64(d + 0.5) : qint64(d - qreal(qint64(d-1)) + 0.5) + qint64(d-1); }
|
||||
#else
|
||||
|
|
|
@ -90,7 +90,7 @@ public:
|
|||
// This logic must match the one in qglobal.h
|
||||
#if defined(QT_COORD_TYPE)
|
||||
QReal = 0,
|
||||
#elif defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE) || defined(QT_ARCH_SYMBIAN)
|
||||
#elif defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE)
|
||||
QReal = Float,
|
||||
#else
|
||||
QReal = Double,
|
||||
|
|
|
@ -234,7 +234,7 @@ namespace QTest
|
|||
return qCompare<qreal>(qreal(t1), t2, actual, expected, file, line);
|
||||
}
|
||||
|
||||
#elif defined(QT_COORD_TYPE) || defined(QT_ARCH_ARM) || defined(QT_NO_FPU) || defined(QT_ARCH_WINDOWSCE) || defined(QT_ARCH_SYMBIAN)
|
||||
#elif defined(QT_COORD_TYPE) || defined(QT_ARCH_ARM) || defined(QT_NO_FPU) || defined(QT_ARCH_WINDOWSCE)
|
||||
template <>
|
||||
inline bool qCompare<qreal, double>(qreal const &t1, double const &t2, const char *actual,
|
||||
const char *expected, const char *file, int line)
|
||||
|
@ -291,27 +291,6 @@ namespace QTest
|
|||
}
|
||||
#else /* QTEST_NO_SPECIALIZATIONS */
|
||||
|
||||
// In Symbian we have QTEST_NO_SPECIALIZATIONS defined, but still float related specialization
|
||||
// should be used. If QTEST_NO_SPECIALIZATIONS is enabled we get ambiguous overload errors.
|
||||
#if defined(QT_ARCH_SYMBIAN)
|
||||
template <typename T1, typename T2>
|
||||
bool qCompare(T1 const &, T2 const &, const char *, const char *, const char *, int);
|
||||
|
||||
template <>
|
||||
inline bool qCompare<qreal, double>(qreal const &t1, double const &t2, const char *actual,
|
||||
const char *expected, const char *file, int line)
|
||||
{
|
||||
return qCompare<float>(float(t1), float(t2), actual, expected, file, line);
|
||||
}
|
||||
|
||||
template <>
|
||||
inline bool qCompare<double, qreal>(double const &t1, qreal const &t2, const char *actual,
|
||||
const char *expected, const char *file, int line)
|
||||
{
|
||||
return qCompare<float>(float(t1), float(t2), actual, expected, file, line);
|
||||
}
|
||||
#endif
|
||||
|
||||
inline bool qCompare(const char *t1, const char *t2, const char *actual,
|
||||
const char *expected, const char *file, int line)
|
||||
{
|
||||
|
@ -323,7 +302,7 @@ namespace QTest
|
|||
{
|
||||
return compare_string_helper(t1, t2, actual, expected, file, line);
|
||||
}
|
||||
#endif
|
||||
#endif /* QTEST_NO_SPECIALIZATIONS */
|
||||
|
||||
/* The next two specializations are for MSVC that shows problems with implicit
|
||||
conversions
|
||||
|
|
Loading…
Add table
Reference in a new issue