Skip to content

Commit 24a3bea

Browse files
code style
1 parent 58c1879 commit 24a3bea

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Simulator/Utils/Global.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ enum class vertexType {
112112
VTYPE_UNDEF = 0
113113
};
114114
// Custom streaming operator<< for the enum class vertexType
115-
inline std::ostream& operator<<(std::ostream& os, vertexType vT) {
116-
os << static_cast<int>(vT);
117-
return os;
115+
inline std::ostream &operator<<(std::ostream &os, vertexType vT)
116+
{
117+
os << static_cast<int>(vT);
118+
return os;
118119
}
119120

120121
// Edge types.
@@ -146,9 +147,10 @@ enum class edgeType {
146147
ETYPE_UNDEF = -1
147148
};
148149
// Custom streaming operator<< for the enum class edgeType
149-
inline std::ostream& operator<<(std::ostream& os, edgeType eT) {
150-
os << static_cast<int>(eT);
151-
return os;
150+
inline std::ostream &operator<<(std::ostream &os, edgeType eT)
151+
{
152+
os << static_cast<int>(eT);
153+
return os;
152154
}
153155

154156
// The default membrane capacitance.

Simulator/Vertices/NG911/All911Vertices.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ void All911Vertices::advanceVertices(AllEdges &edges, const EdgeIndexMap &edgeIn
178178
advanceCALR(vertex, edges911, edgeIndexMap);
179179
} else if (layout.vertexTypeMap_[vertex] == vertexType::PSAP) {
180180
advancePSAP(vertex, edges911, edgeIndexMap);
181-
} else if (layout.vertexTypeMap_[vertex] == vertexType::EMS || layout.vertexTypeMap_[vertex] == vertexType::FIRE
181+
} else if (layout.vertexTypeMap_[vertex] == vertexType::EMS
182+
|| layout.vertexTypeMap_[vertex] == vertexType::FIRE
182183
|| layout.vertexTypeMap_[vertex] == vertexType::LAW) {
183184
advanceRESP(vertex, edges911, edgeIndexMap);
184185
}

0 commit comments

Comments
 (0)