Differences From Artifact [fc2a76aadc]:
- File src/common/OFString+QString.h — part of check-in [860515ac5a] at 2017-05-08 00:11:18 on branch trunk — Update to recent ObjFW changes (user: js, size: 1536) [annotate] [blame] [check-ins using]
To Artifact [99046e4f05]:
- File src/common/OFString+QString.h — part of check-in [6c336e34d7] at 2017-05-14 01:07:21 on branch trunk — Handle NULL / nil in toOF() / toQt() (user: js, size: 1615) [annotate] [blame] [check-ins using]
︙ | |||
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | + + + + + + | @end namespace ObjQt { static OF_INLINE OFString * toOF(const QString &qString) { if (qString.isNull()) return nil; return [OFString stringWithQString: qString]; } static OF_INLINE QString toQt(OFString *string) { if (string == nil) return QString(); return [string qString]; } } |