@@ -109,20 +109,32 @@ class GC final
109109 );
110110
111111 GCVector<ServerInfo> ListServers () const ;
112- GCVector<ServerInfo> ListServers (Regions filterRegion, bool onlyOnline = false ) const ;
112+ GCVector<ServerInfo> ListServers (
113+ Regions filterRegion,
114+ bool onlyOnline = false
115+ ) const ;
113116
114117 /* Server info stuff */
115- bool SetServerStatus (const GCString& name, bool isOnline);
116- bool HasServer (const GCString& name) const ;
118+ bool SetServerStatus (
119+ const GCString& name,
120+ bool isOnline
121+ );
122+
123+ bool HasServer (
124+ const GCString& name
125+ ) const ;
117126
118127 /* since server region member is private */
119- Regions GetRegion () const { return mServerRegion ; }
128+ Regions GetRegion () const
129+ {
130+ return mServerRegion ;
131+ }; // Regions GetRegion
120132
121133 /* ..and the version */
122134 inline GCString GetVersion () const
123135 {
124136 return OPENGC_VERSION;
125- }
137+ }; // inline GCString GetVersion
126138
127139 private:
128140 GCMap<GCString, ServerInfo> mServers ;
@@ -220,7 +232,10 @@ GCVector<ServerInfo> GC::ListServers() const
220232 return list;
221233} // GCVector<ServerInfo> GC::ListServers
222234
223- bool GC::SetServerStatus (const GCString& name, bool isOnline)
235+ bool GC::SetServerStatus (
236+ const GCString& name,
237+ bool isOnline
238+ )
224239{
225240 std::scoped_lock lock (mMutex );
226241
@@ -234,7 +249,10 @@ bool GC::SetServerStatus(const GCString& name, bool isOnline)
234249 return true ;
235250} // bool GC::SetServerStatus
236251
237- GCVector<ServerInfo> GC::ListServers (Regions filterRegion, bool onlyOnline) const
252+ GCVector<ServerInfo> GC::ListServers (
253+ Regions filterRegion,
254+ bool onlyOnline
255+ ) const
238256{
239257 std::scoped_lock lock (mMutex );
240258
@@ -250,7 +268,9 @@ GCVector<ServerInfo> GC::ListServers(Regions filterRegion, bool onlyOnline) cons
250268 return list;
251269} // GCVector<ServerInfo> GC::ListServers
252270
253- bool GC::HasServer (const GCString& name) const
271+ bool GC::HasServer (
272+ const GCString& name
273+ ) const
254274{
255275 return mServers .find (name) != mServers .end ();
256276} // bool GC::HasServer
0 commit comments