neighbor: Fix object creation
We can't use the top-level methods for changing the details otherwise
they will throw an exception during object creation.
CHange-Id: Ied86e1691ceedb92cd38f9458f2763d0a91d8400
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/neighbor.cpp b/src/neighbor.cpp
index e15085a..579a5a8 100644
--- a/src/neighbor.cpp
+++ b/src/neighbor.cpp
@@ -94,9 +94,9 @@
NeighborObj(bus, objPath, NeighborObj::action::defer_emit),
parent(parent)
{
- this->ipAddress(ipAddress);
- this->macAddress(macAddress);
- this->state(state);
+ NeighborObj::ipAddress(ipAddress);
+ NeighborObj::macAddress(macAddress);
+ NeighborObj::state(state);
// Emit deferred signal.
emit_object_added();