Skip to content

Commit

Permalink
Changed to call by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Avisheet committed Feb 21, 2024
1 parent ec655a9 commit 377c41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gz/math/Color.hh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ namespace gz
/// 3=alpha)
/// \return r, g, b, or a when _index is 0, 1, 2 or 3. A NAN_F value is
/// returned if the _index is invalid
public: float operator[](const unsigned int _index);
public: float &operator[](const unsigned int _index);

/// \brief Array index operator, const version
/// \param[in] _index Color component index(0=red, 1=green, 2=blue,
Expand Down

0 comments on commit 377c41a

Please sign in to comment.