diff options
author | Samuel Gaist <samuel.gaist@edeltech.ch> | 2014-03-10 13:28:01 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-10 23:50:41 +0100 |
commit | 3d7f132db4f91eccce1987c2860834a0b88d392d (patch) | |
tree | 93b83d2076def2e497ab67fa44450871db7a9a6a | |
parent | 2d801e11bbcff13c2eeaae2b6ee34e090187a0c0 (diff) |
Document obsolete from/toNSData functionsv5.3.0-beta1
This patch adds the obsolete documentation for fromNSData and toNSData
to conform to the documentation process. See comments in the bug
report
Task-number: QTBUG-36985
Change-Id: I7a9b69fa99c8b53c002a95bd9c70cc64006cd59e
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-rw-r--r-- | src/macextras/qmacfunctions.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/macextras/qmacfunctions.mm b/src/macextras/qmacfunctions.mm index 37185a6..881826a 100644 --- a/src/macextras/qmacfunctions.mm +++ b/src/macextras/qmacfunctions.mm @@ -66,11 +66,21 @@ QT_BEGIN_NAMESPACE namespace QtMac { +/*! + \obsolete + + Use QByteArray::toNSData() instead. + */ NSData* toNSData(const QByteArray &data) { return [NSData dataWithBytes:data.constData() length:data.size()]; } +/*! + \obsolete + + Use QByteArray::fromNSData() instead. + */ QByteArray fromNSData(const NSData *data) { QByteArray ba; |