Differences From Artifact [f833005f89]:
- File src/common/OFDataArray+QByteArray.h — part of check-in [860515ac5a] at 2017-05-08 00:11:18 on branch trunk — Update to recent ObjFW changes (user: js, size: 1554) [annotate] [blame] [check-ins using]
To Artifact [0d699d1d90]:
- File src/common/OFDataArray+QByteArray.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: 1642) [annotate] [blame] [check-ins using]
︙ | |||
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | + + + + + + | @end namespace ObjQt { static OF_INLINE OFDataArray * toOF(const QByteArray &qByteArray) { if (qByteArray.isNull()) return nil; return [OFDataArray dataArrayWithQByteArray: qByteArray]; } static OF_INLINE QByteArray toQt(OFDataArray *dataArray) { if (dataArray == nil) return QByteArray(); return [dataArray qByteArray]; } } |