In qt-x11-opensource-src-4.2.2/src/corelib/tools/qdatetime.h, line 40 has
bool isNull() const { return jd == 0; }
bool isNull() const { return jd == 0; }
To copy to clipboard, switch view to plain text mode
and line 101 has
inline int toJulianDay() const { return jd; }
inline int toJulianDay() const { return jd; }
To copy to clipboard, switch view to plain text mode
As I understand it, all functions defined inside a class definition are automatically inline. Then why does line 101 have the inline keyword while line 40 does not? Is there any special meaning?
Bookmarks