Skip to content

Commit

Permalink
add back const
Browse files Browse the repository at this point in the history
Signed-off-by: Mabel Zhang <mabel@openrobotics.org>
  • Loading branch information
mabelzhang committed Jun 29, 2022
1 parent 3df8a5c commit caa2eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/sdf/Sky.hh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace sdf

/// \brief Get the skybox texture URI.
/// \return The URI of the skybox texture.
public: std::string CubemapUri() const;
public: const std::string &CubemapUri() const;

/// \brief Set the skybox texture URI.
/// \param[in] _uri The URI of the skybox texture.
Expand Down
2 changes: 1 addition & 1 deletion src/Sky.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void Sky::SetCloudAmbient(const ignition::math::Color &_ambient)
}

//////////////////////////////////////////////////
std::string Sky::CubemapUri() const
const std::string &Sky::CubemapUri() const
{
return this->dataPtr->cubemapUri;
}
Expand Down

0 comments on commit caa2eef

Please sign in to comment.