]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/resource/StandardLinkImpl.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Coding style: prefer keyword "not" to "!".
[simgrid.git] / src / kernel / resource / StandardLinkImpl.cpp
index cf3dfbbdd2248c0d51c150c1f342ceed47b36d69..6648c23d4528b096377140bd1cc1de788f3b6bd6 100644 (file)
@@ -15,9 +15,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(res_network);
  * Model *
  *********/
 
-namespace simgrid {
-namespace kernel {
-namespace resource {
+namespace simgrid::kernel::resource {
 
 StandardLinkImpl::StandardLinkImpl(const std::string& name) : LinkImpl(name), piface_(this)
 {
@@ -27,7 +25,7 @@ StandardLinkImpl::StandardLinkImpl(const std::string& name) : LinkImpl(name), pi
   XBT_DEBUG("Create link '%s'", name.c_str());
 }
 
-void StandardLinkImpl::Deleter::operator()(resource::StandardLinkImpl* link)
+void StandardLinkImpl::Deleter::operator()(resource::StandardLinkImpl* link) const
 {
   link->destroy();
 }
@@ -141,6 +139,4 @@ void StandardLinkImpl::set_concurrency_limit(int limit) const
   get_constraint()->set_concurrency_limit(limit);
 }
 
-} // namespace resource
-} // namespace kernel
-} // namespace simgrid
+} // namespace simgrid::kernel::resource