mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
don't waste bandwidth with spaces or default-value items
This commit is contained in:
parent
f07bb38e4a
commit
714a0eee50
7 changed files with 15 additions and 9 deletions
|
|
@ -60,6 +60,7 @@ public:
|
|||
bool getReceiverMayDelete() const { return receiverMayDelete; }
|
||||
void setReceiverMayDelete(bool _receiverMayDelete) { receiverMayDelete = _receiverMayDelete; }
|
||||
ProtocolItem(const QString &_itemType, const QString &_itemSubType);
|
||||
bool isEmpty() const { return false; }
|
||||
};
|
||||
|
||||
class ProtocolItem_Invalid : public ProtocolItem {
|
||||
|
|
@ -79,6 +80,7 @@ public:
|
|||
TopLevelProtocolItem();
|
||||
bool readElement(QXmlStreamReader *xml);
|
||||
void writeElement(QXmlStreamWriter *xml);
|
||||
bool isEmpty() const { return false; }
|
||||
};
|
||||
|
||||
// ----------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue