mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +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:
parent
e0a38a30db
commit
f04309f44a
533 changed files with 13927 additions and 13931 deletions
|
|
@ -31,7 +31,7 @@ BEGIN_JUCE_NAMESPACE
|
|||
|
||||
|
||||
//==============================================================================
|
||||
StringPool::StringPool() throw() {}
|
||||
StringPool::StringPool() noexcept {}
|
||||
StringPool::~StringPool() {}
|
||||
|
||||
namespace StringPoolHelpers
|
||||
|
|
@ -91,7 +91,7 @@ const String::CharPointerType StringPool::getPooledString (const String& s)
|
|||
|
||||
const String::CharPointerType StringPool::getPooledString (const char* const s)
|
||||
{
|
||||
if (s == 0 || *s == 0)
|
||||
if (s == nullptr || *s == 0)
|
||||
return String::empty.getCharPointer();
|
||||
|
||||
return StringPoolHelpers::getPooledStringFromArray (strings, s);
|
||||
|
|
@ -99,18 +99,18 @@ const String::CharPointerType StringPool::getPooledString (const char* const s)
|
|||
|
||||
const String::CharPointerType StringPool::getPooledString (const wchar_t* const s)
|
||||
{
|
||||
if (s == 0 || *s == 0)
|
||||
if (s == nullptr || *s == 0)
|
||||
return String::empty.getCharPointer();
|
||||
|
||||
return StringPoolHelpers::getPooledStringFromArray (strings, s);
|
||||
}
|
||||
|
||||
int StringPool::size() const throw()
|
||||
int StringPool::size() const noexcept
|
||||
{
|
||||
return strings.size();
|
||||
}
|
||||
|
||||
const String::CharPointerType StringPool::operator[] (const int index) const throw()
|
||||
const String::CharPointerType StringPool::operator[] (const int index) const noexcept
|
||||
{
|
||||
return strings [index].getCharPointer();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue