Browse Source

Merge remote-tracking branch 'gh/master' into develop

tags/2021-05-28
jules 11 years ago
parent
commit
03c2b95bc8
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      modules/juce_core/xml/juce_XmlDocument.h
  2. +1
    -1
      modules/juce_gui_basics/buttons/juce_TextButton.h

+ 2
- 2
modules/juce_core/xml/juce_XmlDocument.h View File

@@ -41,7 +41,7 @@
@code @code
XmlDocument myDocument (File ("myfile.xml")); XmlDocument myDocument (File ("myfile.xml"));
XmlElement* mainElement = myDocument.getDocumentElement();
ScopedPointer<XmlElement> mainElement (myDocument.getDocumentElement());
if (mainElement == nullptr) if (mainElement == nullptr)
{ {
@@ -57,7 +57,7 @@
Or you can use the static helper methods for quick parsing.. Or you can use the static helper methods for quick parsing..
@code @code
XmlElement* xml = XmlDocument::parse (myXmlFile);
ScopedPointer<XmlElement> xml (XmlDocument::parse (myXmlFile));
if (xml != nullptr && xml->hasTagName ("foobar")) if (xml != nullptr && xml->hasTagName ("foobar"))
{ {


+ 1
- 1
modules/juce_gui_basics/buttons/juce_TextButton.h View File

@@ -102,7 +102,7 @@ public:
private: private:
#if JUCE_CATCH_DEPRECATED_CODE_MISUSE #if JUCE_CATCH_DEPRECATED_CODE_MISUSE
// Note that this method has been removed - instead, see LookAndFeel::getTextButtonWidthToFitText()
// Note that this method has been removed - instead, see LookAndFeel::getTextButtonFont()
virtual int getFont() { return 0; } virtual int getFont() { return 0; }
#endif #endif


Loading…
Cancel
Save