summaryrefslogtreecommitdiff
path: root/libs/surfaces/websockets/state.h
diff options
context:
space:
mode:
authorLuciano Iam <lucianito@gmail.com>2020-02-22 12:38:49 +0100
committerRobin Gareus <robin@gareus.org>2020-02-22 23:10:24 +0100
commitd8d70adab89a845da29fa6381bcda3ace341c7cb (patch)
tree01d9da4ad8a0e276a2cb63932914fa341d32fe98 /libs/surfaces/websockets/state.h
parent6e499e2cc5d2e1566145ac3719c9be9ca67d1bea (diff)
Replace C++11 lambdas with functors
Diffstat (limited to 'libs/surfaces/websockets/state.h')
-rw-r--r--libs/surfaces/websockets/state.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/surfaces/websockets/state.h b/libs/surfaces/websockets/state.h
index f9e0f8d19e..e556cbdd54 100644
--- a/libs/surfaces/websockets/state.h
+++ b/libs/surfaces/websockets/state.h
@@ -39,14 +39,16 @@ namespace Node {
const std::string strip_plugin_param_value = "strip_plugin_param_value";
}
+typedef std::vector<uint32_t> AddressVector;
+typedef std::vector<TypedValue> ValueVector;
+
class NodeState {
public:
NodeState ();
NodeState (std::string);
- NodeState (std::string, std::vector<uint32_t>,
- std::vector<TypedValue> = std::vector<TypedValue>());
+ NodeState (std::string, AddressVector, ValueVector = ValueVector());
std::string debug_str () const;
@@ -67,8 +69,8 @@ class NodeState {
private:
std::string _node;
- std::vector<uint32_t> _addr;
- std::vector<TypedValue> _val;
+ AddressVector _addr;
+ ValueVector _val;
};