diff options
Diffstat (limited to 'common/bufferadaptor.h')
-rw-r--r-- | common/bufferadaptor.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/common/bufferadaptor.h b/common/bufferadaptor.h index 121ef9d..aaff1c2 100644 --- a/common/bufferadaptor.h +++ b/common/bufferadaptor.h | |||
@@ -45,11 +45,17 @@ public: | |||
45 | { | 45 | { |
46 | } | 46 | } |
47 | 47 | ||
48 | MemoryBufferAdaptor(const BufferAdaptor &buffer) | 48 | MemoryBufferAdaptor(const BufferAdaptor &buffer, const QList<QByteArray> &properties) |
49 | : BufferAdaptor() | 49 | : BufferAdaptor() |
50 | { | 50 | { |
51 | for(const auto &property : buffer.availableProperties()) { | 51 | if (properties.isEmpty()) { |
52 | mValues.insert(property, buffer.getProperty(property)); | 52 | for(const auto &property : buffer.availableProperties()) { |
53 | mValues.insert(property, buffer.getProperty(property)); | ||
54 | } | ||
55 | } else { | ||
56 | for(const auto &property : properties) { | ||
57 | mValues.insert(property, buffer.getProperty(property)); | ||
58 | } | ||
53 | } | 59 | } |
54 | } | 60 | } |
55 | 61 | ||