summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vdslib/src/vespa/vdslib/state/clusterstate.cpp2
-rw-r--r--vdslib/src/vespa/vdslib/state/clusterstate.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/vdslib/src/vespa/vdslib/state/clusterstate.cpp b/vdslib/src/vespa/vdslib/state/clusterstate.cpp
index 9a69ed98c79..fbc9943e22d 100644
--- a/vdslib/src/vespa/vdslib/state/clusterstate.cpp
+++ b/vdslib/src/vespa/vdslib/state/clusterstate.cpp
@@ -55,7 +55,7 @@ struct NodeData {
}
};
-ClusterState::ClusterState(const vespalib::stringref & serialized)
+ClusterState::ClusterState(const vespalib::string& serialized)
: Printable(),
_version(0),
_clusterState(&State::UP),
diff --git a/vdslib/src/vespa/vdslib/state/clusterstate.h b/vdslib/src/vespa/vdslib/state/clusterstate.h
index b60f2f6f1cc..9e8dd0f292a 100644
--- a/vdslib/src/vespa/vdslib/state/clusterstate.h
+++ b/vdslib/src/vespa/vdslib/state/clusterstate.h
@@ -36,7 +36,9 @@ public:
ClusterState();
ClusterState(const ClusterState&);
- explicit ClusterState(const vespalib::stringref & serialized);
+ // FIXME make ClusterState parsing not require null termination of string,
+ // then move to vespalib::stringref
+ explicit ClusterState(const vespalib::string& serialized);
~ClusterState();
std::string getTextualDifference(const ClusterState& other) const;