summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahoo-inc.com>2017-03-13 13:51:40 +0000
committerTor Brede Vekterli <vekterli@yahoo-inc.com>2017-03-13 14:20:46 +0000
commit6c6a2f7b840f65209563ec1553cc71cfa02683a6 (patch)
tree666d79fd6b24257944b438d5daf9ce66c342a3ab /document
parent720617cf9e441059558870525cfefe94a85df788 (diff)
Create explicit, non implicitly inlined function definitions
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/fieldvalue/document.cpp3
-rw-r--r--document/src/vespa/document/fieldvalue/document.h1
-rw-r--r--document/src/vespa/document/repo/configbuilder.cpp7
-rw-r--r--document/src/vespa/document/repo/configbuilder.h8
4 files changed, 16 insertions, 3 deletions
diff --git a/document/src/vespa/document/fieldvalue/document.cpp b/document/src/vespa/document/fieldvalue/document.cpp
index cef9b885dd0..5535ba659ec 100644
--- a/document/src/vespa/document/fieldvalue/document.cpp
+++ b/document/src/vespa/document/fieldvalue/document.cpp
@@ -141,6 +141,9 @@ Document::Document(const DocumentTypeRepo& repo, ByteBuffer& header, ByteBuffer&
deserializeBody(repo, body);
}
+Document::~Document() {
+}
+
void
Document::swap(Document & rhs)
{
diff --git a/document/src/vespa/document/fieldvalue/document.h b/document/src/vespa/document/fieldvalue/document.h
index cfaa7e33c00..9c4ac0ba267 100644
--- a/document/src/vespa/document/fieldvalue/document.h
+++ b/document/src/vespa/document/fieldvalue/document.h
@@ -59,6 +59,7 @@ public:
ByteBuffer& header,
ByteBuffer& body,
const DataType *anticipatedType = 0);
+ ~Document();
void setRepo(const DocumentTypeRepo & repo);
const DocumentTypeRepo * getRepo() const { return _fields.getRepo(); }
diff --git a/document/src/vespa/document/repo/configbuilder.cpp b/document/src/vespa/document/repo/configbuilder.cpp
index 11d6fd4c3a7..81a3da5db00 100644
--- a/document/src/vespa/document/repo/configbuilder.cpp
+++ b/document/src/vespa/document/repo/configbuilder.cpp
@@ -12,5 +12,12 @@ int32_t createFieldId(const vespalib::string &name, int32_t type) {
int32_t DatatypeConfig::id_counter = 100;
+DatatypeConfig::DatatypeConfig() {
+ id = ++id_counter;
+}
+
+DatatypeConfig::DatatypeConfig(const DatatypeConfig&) = default;
+DatatypeConfig& DatatypeConfig::operator=(const DatatypeConfig&) = default;
+
} // namespace config_builder
} // namespace document
diff --git a/document/src/vespa/document/repo/configbuilder.h b/document/src/vespa/document/repo/configbuilder.h
index 11d5c99bee3..5a2932f4663 100644
--- a/document/src/vespa/document/repo/configbuilder.h
+++ b/document/src/vespa/document/repo/configbuilder.h
@@ -17,9 +17,11 @@ struct DatatypeConfig : DocumenttypesConfig::Documenttype::Datatype {
static int32_t id_counter;
std::vector<DatatypeConfig> nested_types;
- DatatypeConfig() {
- id = ++id_counter;
- }
+ DatatypeConfig();
+
+ DatatypeConfig(const DatatypeConfig&);
+ DatatypeConfig& operator=(const DatatypeConfig&);
+
DatatypeConfig &setId(int32_t i) { id = i; return *this; }
void addNestedType(const TypeOrId &t);
};