@@ -222,7 +222,7 @@ struct Text : Node
222222{
223223 std::string string;
224224
225- static constexpr NodeKind static_kind = NodeKind::text;
225+ static constexpr auto static_kind = NodeKind::text;
226226
227227 explicit
228228 Text (
@@ -642,7 +642,7 @@ struct UnorderedList final : Paragraph
642642 bool
643643 equals (Node const & other) const noexcept override
644644 {
645- auto * p = dynamic_cast <const UnorderedList*>(&other);
645+ auto * p = dynamic_cast <UnorderedList const *>(&other);
646646 if (!p)
647647 {
648648 return false ;
@@ -668,11 +668,11 @@ struct Details final : Paragraph
668668 auto operator <=>(Details const &) const = default ;
669669
670670 bool
671- operator ==(const Details&) const noexcept = default ;
671+ operator ==(Details const &) const noexcept = default ;
672672
673- bool equals (const Node& other) const noexcept override
673+ bool equals (Node const & other) const noexcept override
674674 {
675- auto * p = dynamic_cast <const Details*>(&other);
675+ auto * p = dynamic_cast <Details const *>(&other);
676676 if (!p)
677677 {
678678 return false ;
@@ -698,13 +698,13 @@ struct See final : Paragraph
698698
699699 auto operator <=>(See const &) const = default ;
700700
701- bool operator ==(const See&)
701+ bool operator ==(See const &)
702702 const noexcept = default ;
703703
704- bool equals (const Node& other) const noexcept override
704+ bool equals (Node const & other) const noexcept override
705705 {
706706 return Kind == other.Kind &&
707- *this == dynamic_cast <const See&>(other);
707+ *this == dynamic_cast <See const &>(other);
708708 }
709709};
710710
@@ -755,13 +755,13 @@ struct Returns final : Paragraph
755755
756756 auto operator <=>(Returns const &) const = default ;
757757
758- bool operator ==(const Returns&)
758+ bool operator ==(Returns const &)
759759 const noexcept = default ;
760760
761- bool equals (const Node& other) const noexcept override
761+ bool equals (Node const & other) const noexcept override
762762 {
763763 return Kind == other.Kind &&
764- *this == dynamic_cast <const Returns&>(other);
764+ *this == dynamic_cast <Returns const &>(other);
765765 }
766766};
767767
@@ -779,11 +779,11 @@ struct TParam final : Paragraph
779779 }
780780
781781 auto operator <=>(TParam const &) const = default ;
782- bool operator ==(const TParam&) const noexcept = default ;
783- bool equals (const Node& other) const noexcept override
782+ bool operator ==(TParam const &) const noexcept = default ;
783+ bool equals (Node const & other) const noexcept override
784784 {
785785 return Kind == other.Kind &&
786- *this == dynamic_cast <const TParam&>(other);
786+ *this == dynamic_cast <TParam const &>(other);
787787 }
788788};
789789
@@ -807,13 +807,13 @@ struct Throws final : Paragraph
807807
808808 auto operator <=>(Throws const &) const = default ;
809809
810- bool operator ==(const Throws&)
810+ bool operator ==(Throws const &)
811811 const noexcept = default ;
812812
813- bool equals (const Node& other) const noexcept override
813+ bool equals (Node const & other) const noexcept override
814814 {
815815 return Kind == other.Kind &&
816- *this == dynamic_cast <const Throws&>(other);
816+ *this == dynamic_cast <Throws const &>(other);
817817 }
818818};
819819
@@ -831,13 +831,13 @@ struct Precondition final : Paragraph
831831
832832 auto operator <=>(Precondition const &) const = default ;
833833
834- bool operator ==(const Precondition&)
834+ bool operator ==(Precondition const &)
835835 const noexcept = default ;
836836
837- bool equals (const Node& other) const noexcept override
837+ bool equals (Node const & other) const noexcept override
838838 {
839839 return Kind == other.Kind &&
840- *this == dynamic_cast <const Precondition&>(other);
840+ *this == dynamic_cast <Precondition const &>(other);
841841 }
842842};
843843
@@ -855,13 +855,13 @@ struct Postcondition : Paragraph
855855
856856 auto operator <=>(Postcondition const &) const = default ;
857857
858- bool operator ==(const Postcondition&)
858+ bool operator ==(Postcondition const &)
859859 const noexcept = default ;
860860
861- bool equals (const Node& other) const noexcept override
861+ bool equals (Node const & other) const noexcept override
862862 {
863863 return Kind == other.Kind &&
864- *this == dynamic_cast <const Postcondition&>(other);
864+ *this == dynamic_cast <Postcondition const &>(other);
865865 }
866866};
867867
0 commit comments