Skip to content

Commit 8d2948a

Browse files
committed
refactor(DomCorpus): inline operators
1 parent c521719 commit 8d2948a

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

include/mrdocs/Metadata/DomCorpus.hpp

+8-2
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,17 @@ class MRDOCS_DECL
6262

6363
/** Returns the Corpus associated with the Dom.
6464
*/
65-
Corpus const& operator*() const;
65+
Corpus const& operator*() const
66+
{
67+
return getCorpus();
68+
}
6669

6770
/** Returns the Corpus associated with the Dom.
6871
*/
69-
Corpus const* operator->() const;
72+
Corpus const* operator->() const
73+
{
74+
return &getCorpus();
75+
}
7076

7177
/** Construct a lazy Dom object representing the specified symbol.
7278

src/lib/Metadata/DomCorpus.cpp

-14
Original file line numberDiff line numberDiff line change
@@ -707,20 +707,6 @@ getCorpus() const
707707
return impl_->getCorpus();
708708
}
709709

710-
Corpus const&
711-
DomCorpus::
712-
operator*() const
713-
{
714-
return getCorpus();
715-
}
716-
717-
Corpus const*
718-
DomCorpus::
719-
operator->() const
720-
{
721-
return &getCorpus();
722-
}
723-
724710
namespace dom {
725711
/* Determine if a type has a mrdocs::toString overload
726712
*/

0 commit comments

Comments
 (0)