| @@ -77,8 +77,8 @@ public: | |||||
| testResultsBox.setMultiLine (true); | testResultsBox.setMultiLine (true); | ||||
| testResultsBox.setFont (Font (Font::getDefaultMonospacedFontName(), 12.0f, Font::plain)); | testResultsBox.setFont (Font (Font::getDefaultMonospacedFontName(), 12.0f, Font::plain)); | ||||
| logMessage ("This demo uses the ChildProcessMaster and ChildProcessSlave classes to launch and communicate " | |||||
| "with a child process, sending messages in the form of serialised ValueTree objects." + newLine); | |||||
| logMessage (String ("This demo uses the ChildProcessMaster and ChildProcessSlave classes to launch and communicate " | |||||
| "with a child process, sending messages in the form of serialised ValueTree objects.") + newLine); | |||||
| } | } | ||||
| ~ChildProcessDemo() | ~ChildProcessDemo() | ||||
| @@ -42,7 +42,7 @@ struct StartEndString | |||||
| }; | }; | ||||
| static int compareStrings (const String& s1, const String& s2) noexcept { return s1.compare (s2); } | static int compareStrings (const String& s1, const String& s2) noexcept { return s1.compare (s2); } | ||||
| static int compareStrings (CharPointer_UTF8 s1, const String& s2) noexcept { return s1.compare (s2.toUTF8()); } | |||||
| static int compareStrings (CharPointer_UTF8 s1, const String& s2) noexcept { return s1.compare (s2.getCharPointer()); } | |||||
| static int compareStrings (const StartEndString& string1, const String& string2) noexcept | static int compareStrings (const StartEndString& string1, const String& string2) noexcept | ||||
| { | { | ||||
| @@ -71,6 +71,12 @@ XmlElement::XmlElement (const char* tag) | |||||
| sanityCheckTagName (tagName); | sanityCheckTagName (tagName); | ||||
| } | } | ||||
| XmlElement::XmlElement (StringRef tag) | |||||
| : tagName (StringPool::getGlobalPool().getPooledString (tag.text.getAddress())) | |||||
| { | |||||
| sanityCheckTagName (tagName); | |||||
| } | |||||
| XmlElement::XmlElement (const Identifier& tag) | XmlElement::XmlElement (const Identifier& tag) | ||||
| : tagName (tag.toString()) | : tagName (tag.toString()) | ||||
| { | { | ||||
| @@ -152,6 +152,9 @@ public: | |||||
| /** Creates an XmlElement with this tag name. */ | /** Creates an XmlElement with this tag name. */ | ||||
| explicit XmlElement (const Identifier& tagName); | explicit XmlElement (const Identifier& tagName); | ||||
| /** Creates an XmlElement with this tag name. */ | |||||
| explicit XmlElement (StringRef tagName); | |||||
| /** Creates an XmlElement with this tag name. */ | /** Creates an XmlElement with this tag name. */ | ||||
| XmlElement (String::CharPointerType tagNameBegin, String::CharPointerType tagNameEnd); | XmlElement (String::CharPointerType tagNameBegin, String::CharPointerType tagNameEnd); | ||||