summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2017-05-04 11:38:04 +0000
committerGeir Storli <geirst@yahoo-inc.com>2017-05-04 11:38:04 +0000
commit3797ca96ff5e57de966c9f3dc08e1bdf3e5804f2 (patch)
tree0bc4e2ca97ac7378465525118968544cd2d7861d /document
parentc0a6a6bda5712fd1a721e9f96a7aeef7401cc9b7 (diff)
Make searchcore compile without optimizations (-Og).
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/repo/configbuilder.cpp9
-rw-r--r--document/src/vespa/document/repo/configbuilder.h9
2 files changed, 9 insertions, 9 deletions
diff --git a/document/src/vespa/document/repo/configbuilder.cpp b/document/src/vespa/document/repo/configbuilder.cpp
index 81a3da5db00..e8c02ae5af4 100644
--- a/document/src/vespa/document/repo/configbuilder.cpp
+++ b/document/src/vespa/document/repo/configbuilder.cpp
@@ -19,5 +19,14 @@ DatatypeConfig::DatatypeConfig() {
DatatypeConfig::DatatypeConfig(const DatatypeConfig&) = default;
DatatypeConfig& DatatypeConfig::operator=(const DatatypeConfig&) = default;
+void DatatypeConfig::addNestedType(const TypeOrId &t) {
+ if (t.has_type) {
+ nested_types.insert(nested_types.end(),
+ t.type.nested_types.begin(),
+ t.type.nested_types.end());
+ nested_types.push_back(t.type);
+ }
+}
+
} // namespace config_builder
} // namespace document
diff --git a/document/src/vespa/document/repo/configbuilder.h b/document/src/vespa/document/repo/configbuilder.h
index 8c4a48afd95..e0486e8b686 100644
--- a/document/src/vespa/document/repo/configbuilder.h
+++ b/document/src/vespa/document/repo/configbuilder.h
@@ -38,15 +38,6 @@ struct TypeOrId {
TypeOrId(const DatatypeConfig &t) : id(t.id), has_type(true), type(t) {}
};
-inline void DatatypeConfig::addNestedType(const TypeOrId &t) {
- if (t.has_type) {
- nested_types.insert(nested_types.end(),
- t.type.nested_types.begin(),
- t.type.nested_types.end());
- nested_types.push_back(t.type);
- }
-}
-
struct Struct : DatatypeConfig {
Struct(const vespalib::string &name) {
type = STRUCT;