Work around ICC bug about shadowing declarations that aren't shadowing
Known ICC bug, still present in version 17 beta. qdatetime.h(126): error #3280: declaration hides member "QDate::jd" (declared at line 136) Obviously a parameter to static function or to a function in a nested class can't shadow an NSDM. Intel issue IDs: 0000698329 / DPD200245740 Change-Id: I149e0540c00745fe8119fffd1463c679a3a9c8c3 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
5123dba564
commit
726c8ca0de
@ -115,8 +115,8 @@ QT_DEPRECATED inline bool setYMD(int y, int m, int d)
|
|||||||
static bool isValid(int y, int m, int d);
|
static bool isValid(int y, int m, int d);
|
||||||
static bool isLeapYear(int year);
|
static bool isLeapYear(int year);
|
||||||
|
|
||||||
static Q_DECL_CONSTEXPR inline QDate fromJulianDay(qint64 jd)
|
static Q_DECL_CONSTEXPR inline QDate fromJulianDay(qint64 jd_)
|
||||||
{ return jd >= minJd() && jd <= maxJd() ? QDate(jd) : QDate() ; }
|
{ return jd_ >= minJd() && jd_ <= maxJd() ? QDate(jd_) : QDate() ; }
|
||||||
Q_DECL_CONSTEXPR inline qint64 toJulianDay() const { return jd; }
|
Q_DECL_CONSTEXPR inline qint64 toJulianDay() const { return jd; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -486,14 +486,14 @@ private:
|
|||||||
|
|
||||||
void deref() Q_DECL_NOTHROW
|
void deref() Q_DECL_NOTHROW
|
||||||
{ deref(d); }
|
{ deref(d); }
|
||||||
static void deref(Data *d) Q_DECL_NOTHROW
|
static void deref(Data *dd) Q_DECL_NOTHROW
|
||||||
{
|
{
|
||||||
if (!d) return;
|
if (!dd) return;
|
||||||
if (!d->strongref.deref()) {
|
if (!dd->strongref.deref()) {
|
||||||
d->destroy();
|
dd->destroy();
|
||||||
}
|
}
|
||||||
if (!d->weakref.deref())
|
if (!dd->weakref.deref())
|
||||||
delete d;
|
delete dd;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class X>
|
template <class X>
|
||||||
|
@ -524,7 +524,7 @@ public:
|
|||||||
};
|
};
|
||||||
class Attribute {
|
class Attribute {
|
||||||
public:
|
public:
|
||||||
Attribute(AttributeType t, int s, int l, QVariant val) : type(t), start(s), length(l), value(qMove(val)) {}
|
Attribute(AttributeType typ, int s, int l, QVariant val) : type(typ), start(s), length(l), value(qMove(val)) {}
|
||||||
AttributeType type;
|
AttributeType type;
|
||||||
|
|
||||||
int start;
|
int start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user