Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
[TextureAtlas] getMarkupColour strict cv-qualifiers and avoiding copy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyknyshev committed May 2, 2014
1 parent 5d52eef commit bd09678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gorilla.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ namespace Gorilla
mMarkupColour[index] = colour;
}

Ogre::ColourValue TextureAtlas::getMarkupColour(Ogre::uint index)
const Ogre::ColourValue &TextureAtlas::getMarkupColour(Ogre::uint index) const
{
if (index > 9)
return Ogre::ColourValue::White;
Expand Down
2 changes: 1 addition & 1 deletion Gorilla.h
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ namespace Gorilla
note.
colour_palette_index must be between or equal to 0 and 9.
*/
Ogre::ColourValue getMarkupColour(Ogre::uint colour_palette_index);
const Ogre::ColourValue &getMarkupColour(Ogre::uint colour_palette_index) const;

protected:

Expand Down

0 comments on commit bd09678

Please sign in to comment.