mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Removed const-ness from some return types to take advantage of future c++0x advantages.
This commit is contained in:
parent
74469aaa83
commit
0853a9b686
154 changed files with 472 additions and 473 deletions
|
|
@ -514,7 +514,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
const Typeface::Ptr Typeface::createSystemTypefaceFor (const Font& font)
|
||||
Typeface::Ptr Typeface::createSystemTypefaceFor (const Font& font)
|
||||
{
|
||||
return new FreetypeTypeface (font);
|
||||
}
|
||||
|
|
@ -530,8 +530,8 @@ StringArray Font::findAllTypefaceNames()
|
|||
|
||||
namespace LinuxFontHelpers
|
||||
{
|
||||
const String pickBestFont (const StringArray& names,
|
||||
const char* const* choicesString)
|
||||
String pickBestFont (const StringArray& names,
|
||||
const char* const* choicesString)
|
||||
{
|
||||
const StringArray choices (choicesString);
|
||||
|
||||
|
|
@ -553,7 +553,7 @@ namespace LinuxFontHelpers
|
|||
return names[0];
|
||||
}
|
||||
|
||||
const String getDefaultSansSerifFontName()
|
||||
String getDefaultSansSerifFontName()
|
||||
{
|
||||
StringArray allFonts;
|
||||
FreeTypeInterface::getInstance()->getSansSerifNames (allFonts);
|
||||
|
|
@ -562,7 +562,7 @@ namespace LinuxFontHelpers
|
|||
return pickBestFont (allFonts, targets);
|
||||
}
|
||||
|
||||
const String getDefaultSerifFontName()
|
||||
String getDefaultSerifFontName()
|
||||
{
|
||||
StringArray allFonts;
|
||||
FreeTypeInterface::getInstance()->getSerifNames (allFonts);
|
||||
|
|
@ -571,7 +571,7 @@ namespace LinuxFontHelpers
|
|||
return pickBestFont (allFonts, targets);
|
||||
}
|
||||
|
||||
const String getDefaultMonospacedFontName()
|
||||
String getDefaultMonospacedFontName()
|
||||
{
|
||||
StringArray allFonts;
|
||||
FreeTypeInterface::getInstance()->getMonospacedNames (allFonts);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue