diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-01-09 10:20:42 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-01-09 13:05:01 +0000 |
commit | 5f321f1d1df8da72187a711f9cdc36481dc25cae (patch) | |
tree | 5378915b89a25ead8cea4c7678357ec66916b38d /staging_vespalib | |
parent | a9c77576da201d3da009e8f86800d23070284a41 (diff) |
Brief implementation skeleton for bool field type.
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/util/xmlserializable.cpp | 6 | ||||
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/util/xmlserializable.h | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/xmlserializable.cpp b/staging_vespalib/src/vespa/vespalib/util/xmlserializable.cpp index 9272f7b0f94..35110be87ca 100644 --- a/staging_vespalib/src/vespa/vespalib/util/xmlserializable.cpp +++ b/staging_vespalib/src/vespa/vespalib/util/xmlserializable.cpp @@ -4,8 +4,7 @@ #include "xmlstream.h" #include <sstream> -namespace vespalib { -namespace xml { +namespace vespalib::xml { std::string XmlSerializable::toXml(const std::string& indent) const @@ -16,5 +15,4 @@ XmlSerializable::toXml(const std::string& indent) const return ost.str(); } -} // xml -} // vespalib +} diff --git a/staging_vespalib/src/vespa/vespalib/util/xmlserializable.h b/staging_vespalib/src/vespa/vespalib/util/xmlserializable.h index c0d41910479..4c00a734b2b 100644 --- a/staging_vespalib/src/vespa/vespalib/util/xmlserializable.h +++ b/staging_vespalib/src/vespa/vespalib/util/xmlserializable.h @@ -4,8 +4,7 @@ #include <string> -namespace vespalib { -namespace xml { +namespace vespalib::xml { class XmlOutputStream; @@ -26,8 +25,9 @@ public: virtual std::string toXml(const std::string& indent = "") const; }; -} // xml +} +namespace vespalib { // The XmlSerializable and XmlOutputStream is often used in header files // and is thus available in the vespalib namespace. To not pollute the // vespalib namespace with all the other classes, use |