1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

Added fake placeholder versions of the new c++0x 'noexcept' and 'nullptr' keywords, and altered the library classes to use these instead of 'throw()' and '0'. This shouldn't make any difference at all to existing code, but will enable better static checking with future c++0x compilers.

This commit is contained in:
Julian Storer 2011-04-07 13:49:01 +01:00
parent e0a38a30db
commit f04309f44a
533 changed files with 13927 additions and 13931 deletions

View file

@ -57,19 +57,19 @@ public:
}
}
const String& getFamilyName() const throw() { return family; }
const String& getFamilyName() const noexcept { return family; }
const String& getFileName (const int style, int& faceIndex) const throw()
const String& getFileName (const int style, int& faceIndex) const noexcept
{
faceIndex = names[style].faceIndex;
return names[style].fileName;
}
void setMonospaced (bool mono) throw() { monospaced = mono; }
bool getMonospaced() const throw() { return monospaced; }
void setMonospaced (bool mono) noexcept { monospaced = mono; }
bool getMonospaced() const noexcept { return monospaced; }
void setSerif (const bool serif) throw() { hasSerif = serif; }
bool getSerif() const throw() { return hasSerif; }
void setSerif (const bool serif) noexcept { hasSerif = serif; }
bool getSerif() const noexcept { return hasSerif; }
private:
//==============================================================================
@ -110,7 +110,7 @@ public:
{
const ScopedPointer<XmlElement> fontsInfo (XmlDocument::parse (File ("/etc/fonts/fonts.conf")));
if (fontsInfo != 0)
if (fontsInfo != nullptr)
{
forEachXmlChildElementWithTagName (*fontsInfo, e, "dir")
{