1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
Commit graph

118 commits

Author SHA1 Message Date
無常
d9ed81b4f0
WindowsDLL: Add missing JUCE_API attributes 2024-10-27 16:16:26 +00:00
reuk
1023f62338 XmlElement: Avoid potential undefined-init-order issues with juce_xmltextContentAttributeName
This fixes potential crashes when this static object is accessed from
the constructors of other objects with static storage duration.

A concrete example of this could be seen when running the following on
Linux:

    static inline const Typeface::Ptr face =
        Typeface::createSystemTypefaceFor (...);

Here, 'face' is a static data member of some class. Creating a system
typeface on Linux will parse an XML document of system typefaces,
eventually accessing juce_xmltextContentAttributeName.
2024-07-08 13:09:30 +01:00
Tom Poole
94d98a2b10 Update licensing information 2024-04-16 11:39:35 +01:00
Tom Poole
6bf9bb9a2e Add final specifiers in implementation files 2023-10-10 16:12:38 +01:00
Tom Poole
4153d59e39 Formatting 2023-10-02 15:42:20 +01:00
reuk
8b8ae10059
Build: Replace JUCE_NODISCARD with [[nodiscard]] 2022-09-12 16:14:57 +01:00
Tom Poole
dea3fe60e4 Update copyright banners 2022-04-04 12:36:32 +01:00
reuk
b80927fc91
Nodiscard: Add to builder-pattern functions 2022-01-27 18:43:21 +00:00
Tom Poole
c072b1bc8e Fix some typos 2022-01-25 11:48:46 +00:00
ed
b9542ccc4c Update code to use C++14 [[deprecated]] attribute
This commit removes the various compiler-specific JUCE_DEPRECATED macros and replaces them with C++14's deprecated attribute. It also removes the JUCE_CATCH_DEPRECATED_CODE_MISUSE flag as we can rely on the override specifier catching usage of these old virtual methods, and tidies up the DOXYGEN preprocessor checks as they were inconsistent across the codebase.
2021-09-29 16:14:00 +01:00
Tom Poole
a6fced64df Remove some outdated documentation 2021-08-18 09:51:34 +01:00
ed
be84627f93 Docs: Updated XmlElement docs to use getChildIterator() instead of deprecated macros 2021-04-08 11:51:41 +01:00
reuk
c6280f7b8a
XmlElement: Fix rare crash when parsing truncated escape sequences 2021-02-18 10:54:29 +00:00
reuk
64b9366e8f
CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
reuk
6ff54f0a64
XmlElement: Fix conversion issue when passing Identifiers to forEachXmlChildElementWithTagName 2021-01-29 12:57:44 +00:00
reuk
40f6ac7c47
XmlElement: Add range-for-compatible iterators 2021-01-28 20:14:11 +00:00
Tom Poole
f6782fe25b Revert "XML: Added an additional assertion when parsing/creating malformed namespaced tag names"
This reverts commit 56f11e8611.
2020-07-22 16:33:41 +01:00
Tom Poole
56f11e8611 XML: Added an additional assertion when parsing/creating malformed namespaced tag names 2020-07-22 14:04:46 +01:00
reuk
4cf66d6522 Cleanup: Remove redundant inlines 2020-04-27 10:22:06 +01:00
Tom Poole
894e7d2bd2 Updated all license headers 2020-04-23 17:30:39 +01:00
ed
c2e3dcd8bf Updated the documentation of some methods which now return std::unique_ptr instead of raw pointers to remove references to deleting the returned object 2020-04-23 17:08:29 +01:00
ed
59a058fdc6 Fixed some warnings flagged up when enabling -Wswitch-enum, -Wswitch-default, -Wredundant-decls, and -Wimplicit-fallthrough 2020-03-09 17:39:28 +00:00
Tom Poole
fb40c34f5f Added some missing documentation 2019-08-09 10:04:07 +01:00
Tom Poole
a12bc32979 Fixed some warnings on the latest compilers 2019-07-26 12:58:04 +01:00
Tom Poole
52a4939b62 Updated some documentation 2019-06-12 15:01:11 +01:00
Tom Poole
16dd26649a Fixed some GCC compiler warnings and removed deprecated functions 2019-06-04 16:48:44 +01:00
jules
c6d1828a32 A few more internal updates for better smart pointer use 2019-05-19 11:44:22 +01:00
jules
0fb8c8e82a Added handy new function parseXMLIfTagMatches(), and refactored a lot of old code that was parsing XML in a more clunky way 2019-05-19 08:16:27 +01:00
jules
2e2cfb5f6c Made a lot of the functions that used to return a raw XmlElement* instead return a std::unique_ptr<XmlElement> to make it safer and more concise to capture them. Also added new methods to XmlElement for generating text, and deprecated the old ones 2019-05-09 10:51:19 +01:00
ed
497a1b3fb7 Added juce_UnitTestCategories.h to replace raw strings used for test categories 2019-04-03 15:10:40 +01:00
ed
f3af250ff7 Tidied up unit test code layout 2019-04-02 11:54:29 +01:00
Tom Poole
0d019acd1c Added a trailing decimal when serialising integer valued doubles 2019-03-21 17:50:11 +00:00
Tom Poole
bbe49f6b36 Serialise doubles into more human friendly XML and JSON 2019-02-27 17:59:24 +00:00
Tom Poole
865eabd434 Fixed a bug writing doubles to XML and JSON 2019-02-11 11:11:44 +00:00
ed
62958a79ea Whitespace 2019-02-08 09:42:17 +00:00
ed
a096b4f707 Added an assertion to XmlElement::removeChildElement() to check that childToRemove is actually a child of the XmlElement 2019-02-08 09:24:02 +00:00
ed
3ba771507d Avoid unnecessary zeros when writing double values to XML or JSON 2018-12-17 16:32:57 +00:00
Tom Poole
721d732b40 Reverted the numberOfDecimalPlaces behaviour of the String constructor 2018-12-07 13:52:54 +00:00
ed
eaf0f990d4 Replaced all uses of static_cast<Type&&> with std::move 2018-11-28 17:29:20 +00:00
jules
768139a298 Added some free functions to help make XML parsing less verbose: parseXML() 2018-10-15 16:08:25 +01:00
Tom Poole
493591a7ef Cleaned up some doc comments 2018-08-29 10:56:56 +01:00
Tom Poole
ab863a6dc2 Replaced all usage of ScopedPointer with std::unique_ptr 2018-04-19 20:27:47 +01:00
hogliux
736a07e4ce Added a setTagName method to XmlElement 2018-04-04 10:46:18 +01:00
ed
cdbc28c18b Add documentation tags 2018-03-15 12:10:32 +00:00
jules
8d09eaadb6 Removed some defunct code from the C++1 feature detection macros, and simplified code which no longer needs to test for feature availability 2018-01-11 09:08:51 +00:00
jules
1a60fa9765 More ScopedPointer/unique_ptr compatibility work 2018-01-10 17:35:08 +00:00
jules
85f74ca7d3 Clarified comments around the JUCE_ALLOW_STATIC_NULL_VARIABLES items to make clear that they're deprecated 2017-12-31 10:49:33 +00:00
jules
babea0885b Added a method ValueTree::appendChild(). Also tidied up a lot of the ValueTree comments, which were a bit scrappy. 2017-11-11 14:17:48 +00:00
jules
f0ef700e46 Modernised a bunch of code mainly relating to character/string iteration 2017-10-19 16:52:20 +01:00
jules
95053c0665 Quick spruce-up in the XML parser 2017-10-18 15:33:34 +01:00