From 8c6b3613b6ba738dcd45dcac2275f7d2028dfd29 Mon Sep 17 00:00:00 2001 From: peri4 Date: Wed, 11 May 2022 10:48:36 +0300 Subject: [PATCH] code brush --- libs/main/core/pipropertystorage.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/main/core/pipropertystorage.h b/libs/main/core/pipropertystorage.h index 4573debc..b1c9188c 100644 --- a/libs/main/core/pipropertystorage.h +++ b/libs/main/core/pipropertystorage.h @@ -271,10 +271,11 @@ protected: }; -template inline PIBinaryStream

& operator <<(PIBinaryStream

& s, const PIPropertyStorage::Property & v) {s << v.name << v.value << v.comment << v.flags; return s;} -template inline PIBinaryStream

& operator >>(PIBinaryStream

& s, PIPropertyStorage::Property & v) {s >> v.name >> v.value >> v.comment >> v.flags; return s;} +BINARY_STREAM_STORE (PIPropertyStorage::Property) {s << v.name << v.value << v.comment << v.flags; return s;} +BINARY_STREAM_RESTORE(PIPropertyStorage::Property) {s >> v.name >> v.value >> v.comment >> v.flags; return s;} + +BINARY_STREAM_STORE (PIPropertyStorage) {s << v.properties(); return s;} +BINARY_STREAM_RESTORE(PIPropertyStorage) {s >> v.properties(); return s;} -template inline PIBinaryStream

& operator <<(PIBinaryStream

& s, const PIPropertyStorage & v) {s << v.properties(); return s;} -template inline PIBinaryStream

& operator >>(PIBinaryStream

& s, PIPropertyStorage & v) {s >> v.properties(); return s;} #endif // PIPROPERTYSTORAGE_H