Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Make parameter a pointer-to-const.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 12 Oct 2020 07:35:00 +0000 (09:35 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 12 Oct 2020 07:44:58 +0000 (09:44 +0200)
src/instr/instr_paje_types.hpp

index 27b8b95..b2468f2 100644 (file)
@@ -94,7 +94,7 @@ public:
 class LinkType : public ValueType {
 public:
   static xbt::signal<void(LinkType const&, Type const&, Type const&)> on_creation;
-  LinkType(const std::string& name, Type* source, Type* dest, const std::string& alias, Type* father)
+  LinkType(const std::string& name, const Type* source, const Type* dest, const std::string& alias, Type* father)
       : ValueType(PAJE_DefineLinkType, name, alias, father)
   {
     on_creation(*this, *source, *dest);