summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/text/qbytearray.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp
index b5894da8bb..e42cfc3be5 100644
--- a/src/corelib/text/qbytearray.cpp
+++ b/src/corelib/text/qbytearray.cpp
@@ -4195,15 +4195,10 @@ QByteArray QByteArray::number(double n, char f, int prec)
*/
QByteArray &QByteArray::setRawData(const char *data, qsizetype size)
{
- if (!data || !size) {
+ if (!data || !size)
clear();
- }
-// else if (d->isShared() || (d->flags() & Data::RawDataType) == 0) {
+ else
*this = fromRawData(data, size);
-// } else {
-// d.size = size;
-// d.data() = const_cast<char *>(data);
-// }
return *this;
}