Skip to content
Snippets Groups Projects
Commit 5ac28faf authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Simplify using auto return type

parent 841d31ad
No related branches found
No related tags found
No related merge requests found
......@@ -132,12 +132,12 @@ public:
static void concatenateVectors(const VectorTypeContainer& parts, VectorType& whole);
/** \brief Get the contact couplings. */
const std::vector<std::shared_ptr<CouplingType> >& getContactCouplings() const {
const auto& getContactCouplings() const {
return contactCoupling_;
}
/** \brief Get the contact couplings. */
std::vector<std::shared_ptr<CouplingType> >& getContactCouplings() {
auto& getContactCouplings() {
return contactCoupling_;
}
......@@ -164,7 +164,7 @@ public:
}
/** \brief Get reference to i'th coupling. */
const CouplingPair<GridType, GridType, field_type>& getCoupling(size_t i) const {return coupling_[i];}
const auto& getCoupling(size_t i) const {return coupling_[i];}
protected:
/** \brief Compute the transposed mortar transformation matrix. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment