1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Compiler fixes for String and var. Fix for TextEditor redraw problems.

This commit is contained in:
Julian Storer 2010-02-24 11:27:57 +00:00
parent bb60371f1c
commit 80afd8aee7
6 changed files with 81 additions and 73 deletions

View file

@ -209,7 +209,8 @@ DynamicObject* var::getObject() const
return type == objectType ? value.objectValue : 0;
}
bool var::operator== (const var& other) const throw()
//==============================================================================
bool var::equals (const var& other) const throw()
{
switch (type)
{
@ -226,11 +227,12 @@ bool var::operator== (const var& other) const throw()
return false;
}
bool var::operator!= (const var& other) const throw()
{
return ! operator== (other);
}
bool operator== (const var& v1, const var& v2) throw() { return v1.equals (v2); }
bool operator!= (const var& v1, const var& v2) throw() { return ! v1.equals (v2); }
bool operator== (const var& v1, const String& v2) throw() { return v1.toString() == v2; }
bool operator!= (const var& v1, const String& v2) throw() { return v1.toString() != v2; }
//==============================================================================
void var::writeToStream (OutputStream& output) const
{
switch (type)