lsa: simplify initializeFromContent and improve naming
refs: #4354
Change-Id: I5ddd5a9f482f59e6ca52061ac92514feab8c3070
diff --git a/src/lsdb.cpp b/src/lsdb.cpp
index 327c3f1..2d78610 100644
--- a/src/lsdb.cpp
+++ b/src/lsdb.cpp
@@ -1230,7 +1230,7 @@
lsaIncrementSignal(Statistics::PacketType::RCV_NAME_LSA_DATA);
if (isNameLsaNew(lsaKey, lsSeqNo)) {
NameLsa nameLsa;
- if (nameLsa.initializeFromContent(dataContent)) {
+ if (nameLsa.deserialize(dataContent)) {
installNameLsa(nameLsa);
}
else {
@@ -1247,7 +1247,7 @@
lsaIncrementSignal(Statistics::PacketType::RCV_ADJ_LSA_DATA);
if (isAdjLsaNew(lsaKey, lsSeqNo)) {
AdjLsa adjLsa;
- if (adjLsa.initializeFromContent(dataContent)) {
+ if (adjLsa.deserialize(dataContent)) {
installAdjLsa(adjLsa);
}
else {
@@ -1264,7 +1264,7 @@
lsaIncrementSignal(Statistics::PacketType::RCV_COORD_LSA_DATA);
if (isCoordinateLsaNew(lsaKey, lsSeqNo)) {
CoordinateLsa corLsa;
- if (corLsa.initializeFromContent(dataContent)) {
+ if (corLsa.deserialize(dataContent)) {
installCoordinateLsa(corLsa);
}
else {