diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-01-27 12:28:50 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2018-01-27 12:28:50 +0000 |
commit | 2a6575260f6bb757027898f14962a53a282c0c63 (patch) | |
tree | fdefc4bbb89d220f1b7de855a29865665d084404 /staging_vespalib | |
parent | 130bae7890a4dd6bc429e90a874134482523ac2a (diff) |
Avoid exposing rarely used code for inlining.
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/data/fileheader.cpp | 6 | ||||
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/data/fileheader.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/data/fileheader.cpp b/staging_vespalib/src/vespa/vespalib/data/fileheader.cpp index a9e131b0c63..d166702ab3a 100644 --- a/staging_vespalib/src/vespa/vespalib/data/fileheader.cpp +++ b/staging_vespalib/src/vespa/vespalib/data/fileheader.cpp @@ -16,6 +16,10 @@ const uint32_t GenericHeader::VERSION(1); const GenericHeader::Tag GenericHeader::EMPTY; const size_t ALIGNMENT=0x1000; +GenericHeader::Tag::~Tag() = default; +GenericHeader::Tag::Tag(const Tag &) = default; +GenericHeader::Tag & GenericHeader::Tag::operator=(const Tag &) = default; + GenericHeader::Tag::Tag() : _type(TYPE_EMPTY), _name(""), @@ -156,8 +160,6 @@ GenericHeader::Tag::Tag(const vespalib::string &name, const vespalib::string &va // empty } -GenericHeader::Tag::~Tag() { } - size_t GenericHeader::Tag::getSize() const { diff --git a/staging_vespalib/src/vespa/vespalib/data/fileheader.h b/staging_vespalib/src/vespa/vespalib/data/fileheader.h index e4449a0c36a..ab57f312c4d 100644 --- a/staging_vespalib/src/vespa/vespalib/data/fileheader.h +++ b/staging_vespalib/src/vespa/vespalib/data/fileheader.h @@ -49,6 +49,8 @@ public: public: Tag(); + Tag(const Tag &); + Tag & operator=(const Tag &); Tag(const vespalib::string &name, float val); Tag(const vespalib::string &name, double val); Tag(const vespalib::string &name, int8_t val); |