summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qdatetime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qdatetime.h')
-rw-r--r--src/corelib/tools/qdatetime.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/corelib/tools/qdatetime.h b/src/corelib/tools/qdatetime.h
index e3552f5c82..815fa12b23 100644
--- a/src/corelib/tools/qdatetime.h
+++ b/src/corelib/tools/qdatetime.h
@@ -106,9 +106,9 @@ QT_DEPRECATED inline bool setYMD(int y, int m, int d)
#endif // < Qt 6
void getDate(int *year, int *month, int *day) const;
- QDate addDays(qint64 days) const Q_REQUIRED_RESULT;
- QDate addMonths(int months) const Q_REQUIRED_RESULT;
- QDate addYears(int years) const Q_REQUIRED_RESULT;
+ Q_REQUIRED_RESULT QDate addDays(qint64 days) const;
+ Q_REQUIRED_RESULT QDate addMonths(int months) const;
+ Q_REQUIRED_RESULT QDate addYears(int years) const;
qint64 daysTo(const QDate &) const;
Q_DECL_CONSTEXPR bool operator==(const QDate &other) const { return jd == other.jd; }
@@ -172,9 +172,9 @@ public:
#endif
bool setHMS(int h, int m, int s, int ms = 0);
- QTime addSecs(int secs) const Q_REQUIRED_RESULT;
+ Q_REQUIRED_RESULT QTime addSecs(int secs) const;
int secsTo(const QTime &) const;
- QTime addMSecs(int ms) const Q_REQUIRED_RESULT;
+ Q_REQUIRED_RESULT QTime addMSecs(int ms) const;
int msecsTo(const QTime &) const;
Q_DECL_CONSTEXPR bool operator==(const QTime &other) const { return mds == other.mds; }
@@ -306,11 +306,11 @@ public:
#endif
QString toString(QStringView format) const;
#endif
- QDateTime addDays(qint64 days) const Q_REQUIRED_RESULT;
- QDateTime addMonths(int months) const Q_REQUIRED_RESULT;
- QDateTime addYears(int years) const Q_REQUIRED_RESULT;
- QDateTime addSecs(qint64 secs) const Q_REQUIRED_RESULT;
- QDateTime addMSecs(qint64 msecs) const Q_REQUIRED_RESULT;
+ Q_REQUIRED_RESULT QDateTime addDays(qint64 days) const;
+ Q_REQUIRED_RESULT QDateTime addMonths(int months) const;
+ Q_REQUIRED_RESULT QDateTime addYears(int years) const;
+ Q_REQUIRED_RESULT QDateTime addSecs(qint64 secs) const;
+ Q_REQUIRED_RESULT QDateTime addMSecs(qint64 msecs) const;
QDateTime toTimeSpec(Qt::TimeSpec spec) const;
inline QDateTime toLocalTime() const { return toTimeSpec(Qt::LocalTime); }