aboutsummaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-12-03 01:26:33 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2016-12-12 02:55:45 +0100
commit86b600a7e6d0153f8e22a1ea468a72215d0c36a1 (patch)
tree67ebc65cf7c7a8f6a1a3f98bf18370d4afd9cad2 /document
parentcb9906475a5dd328682bcd7463eba6768036c04f (diff)
Avoid building all the document code in every file.
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/update/addfieldpathupdate.cpp8
-rw-r--r--document/src/vespa/document/update/addfieldpathupdate.h3
-rw-r--r--document/src/vespa/document/update/documentupdate.h3
3 files changed, 9 insertions, 5 deletions
diff --git a/document/src/vespa/document/update/addfieldpathupdate.cpp b/document/src/vespa/document/update/addfieldpathupdate.cpp
index be1a5e0855c..076e67e0abc 100644
--- a/document/src/vespa/document/update/addfieldpathupdate.cpp
+++ b/document/src/vespa/document/update/addfieldpathupdate.cpp
@@ -31,7 +31,13 @@ AddFieldPathUpdate::AddFieldPathUpdate(
AddFieldPathUpdate::AddFieldPathUpdate()
: FieldPathUpdate(), _values()
-{
+{ }
+
+AddFieldPathUpdate::~AddFieldPathUpdate() { }
+
+FieldPathUpdate*
+AddFieldPathUpdate::clone() const {
+ return new AddFieldPathUpdate(*this);
}
FieldValue::IteratorHandler::ModificationStatus
diff --git a/document/src/vespa/document/update/addfieldpathupdate.h b/document/src/vespa/document/update/addfieldpathupdate.h
index 16d2cfa24f4..7d76df14ec3 100644
--- a/document/src/vespa/document/update/addfieldpathupdate.h
+++ b/document/src/vespa/document/update/addfieldpathupdate.h
@@ -16,8 +16,9 @@ public:
stringref fieldPath,
stringref whereClause,
const ArrayFieldValue& values);
+ ~AddFieldPathUpdate();
- FieldPathUpdate* clone() const { return new AddFieldPathUpdate(*this); }
+ FieldPathUpdate* clone() const override;
bool operator==(const FieldPathUpdate& other) const;
diff --git a/document/src/vespa/document/update/documentupdate.h b/document/src/vespa/document/update/documentupdate.h
index 3563e853652..5d5143a0cd5 100644
--- a/document/src/vespa/document/update/documentupdate.h
+++ b/document/src/vespa/document/update/documentupdate.h
@@ -30,9 +30,6 @@
#include <vespa/document/datatype/documenttype.h>
#include <vespa/document/fieldvalue/fieldvalue.h>
#include <vespa/document/util/bytebuffer.h>
-#include <vespa/fastos/fastos.h>
-#include <string>
-
#include <vespa/document/update/fieldupdate.h>
#include <vespa/document/update/fieldpathupdate.h>