diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-11-26 13:50:28 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-11-26 13:50:28 +0100 |
commit | cdb764f2de7ee27c97708dfe44f1e6b905c571db (patch) | |
tree | 30762fc99ff90c21e420bf34514f61196b5c0dfd /src/base.cpp | |
parent | b4f82cff9b2efdc05e29bfe9db3f0bbb40d9ce2b (diff) |
Fix FORMAT_INTERNAL handling in LocalIntExt::serialize() and LocalStringExt::serialize()
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base.cpp b/src/base.cpp index c268c7493..b007a1098 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -238,7 +238,7 @@ LocalStringExt::~LocalStringExt() std::string LocalStringExt::serialize(SerializeFormat format, const Extensible* container, void* item) const { - if (item && format == FORMAT_USER) + if ((item) && (format != FORMAT_NETWORK)) return *static_cast<std::string*>(item); return ""; } @@ -254,7 +254,7 @@ LocalIntExt::~LocalIntExt() std::string LocalIntExt::serialize(SerializeFormat format, const Extensible* container, void* item) const { - if (format != FORMAT_USER) + if (format == FORMAT_NETWORK) return ""; return ConvToStr(reinterpret_cast<intptr_t>(item)); } |