diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-08 17:43:07 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-08 17:43:07 +0100 |
commit | 9c8e4612403fc2accc26ac2b49670394972f1293 (patch) | |
tree | a0f09d24cb1c9cec3e9778a06deb0da154f02078 /common/bufferadaptor.h | |
parent | 5255876dde678aa7d5af8020d5836b1fc6c58fc7 (diff) | |
download | sink-9c8e4612403fc2accc26ac2b49670394972f1293.tar.gz sink-9c8e4612403fc2accc26ac2b49670394972f1293.zip |
One copy algorithm is enough.
Diffstat (limited to 'common/bufferadaptor.h')
-rw-r--r-- | common/bufferadaptor.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/common/bufferadaptor.h b/common/bufferadaptor.h index 8787d39..f6994d7 100644 --- a/common/bufferadaptor.h +++ b/common/bufferadaptor.h | |||
@@ -59,19 +59,6 @@ public: | |||
59 | { | 59 | { |
60 | } | 60 | } |
61 | 61 | ||
62 | MemoryBufferAdaptor(const BufferAdaptor &buffer, const QList<QByteArray> &properties) : BufferAdaptor() | ||
63 | { | ||
64 | if (properties.isEmpty()) { | ||
65 | for (const auto &property : buffer.availableProperties()) { | ||
66 | mValues.insert(property, buffer.getProperty(property)); | ||
67 | } | ||
68 | } else { | ||
69 | for (const auto &property : properties) { | ||
70 | mValues.insert(property, buffer.getProperty(property)); | ||
71 | } | ||
72 | } | ||
73 | } | ||
74 | |||
75 | virtual ~MemoryBufferAdaptor() | 62 | virtual ~MemoryBufferAdaptor() |
76 | { | 63 | { |
77 | } | 64 | } |