1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Converted a few Colour references to pass-by-values.

This commit is contained in:
jules 2013-07-01 17:38:47 +01:00
parent 18d34b857b
commit 2329e63f20
31 changed files with 77 additions and 84 deletions

View file

@ -260,7 +260,7 @@ namespace TextLayoutHelpers
struct Token
{
Token (const String& t, const Font& f, const Colour& c, const bool whitespace)
Token (const String& t, const Font& f, Colour c, const bool whitespace)
: text (t), font (f), colour (c),
area (font.getStringWidthFloat (t), f.getHeight()),
isWhitespace (whitespace),
@ -415,7 +415,7 @@ namespace TextLayoutHelpers
}
void appendText (const AttributedString& text, const Range<int> stringRange,
const Font& font, const Colour& colour)
const Font& font, Colour colour)
{
const String stringText (text.getText().substring (stringRange.getStart(), stringRange.getEnd()));
String::CharPointerType t (stringText.getCharPointer());