mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
Lots of minor changes to prevent warnings. Small fixes to Path, AudioThumbnail, ValueTree, OutputStreams. Tweaks to convert Drawables to/from ValueTrees. New method to write XML to a stream.
This commit is contained in:
parent
d9dc6b1cfc
commit
80753f4c03
87 changed files with 1445 additions and 1755 deletions
|
|
@ -237,6 +237,11 @@ var::operator bool() const throw()
|
|||
return false;
|
||||
}
|
||||
|
||||
var::operator float() const throw()
|
||||
{
|
||||
return (float) operator double();
|
||||
}
|
||||
|
||||
var::operator double() const throw()
|
||||
{
|
||||
switch (type)
|
||||
|
|
@ -250,7 +255,7 @@ var::operator double() const throw()
|
|||
default: jassertfalse; break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
const String var::toString() const throw()
|
||||
|
|
@ -310,7 +315,7 @@ void var::writeToStream (OutputStream& output) const throw()
|
|||
case doubleType: output.writeCompressedInt (9); output.writeByte (4); output.writeDouble (value.doubleValue); break;
|
||||
case stringType:
|
||||
{
|
||||
const int len = value.stringValue->copyToUTF8 (0, -1);
|
||||
const int len = value.stringValue->copyToUTF8 (0);
|
||||
output.writeCompressedInt (len + 1);
|
||||
output.writeByte (5);
|
||||
uint8* const temp = (uint8*) juce_malloc (len);
|
||||
|
|
@ -419,12 +424,14 @@ var::identifier::identifier (const String& name_) throw()
|
|||
: name (name_),
|
||||
hashCode (name_.hashCode())
|
||||
{
|
||||
jassert (name_.isNotEmpty());
|
||||
}
|
||||
|
||||
var::identifier::identifier (const char* const name_) throw()
|
||||
: name (name_),
|
||||
hashCode (name.hashCode())
|
||||
{
|
||||
jassert (name.isNotEmpty());
|
||||
}
|
||||
|
||||
var::identifier::~identifier() throw()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue