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

165 commits

Author SHA1 Message Date
Tom Poole
ff0cb4ad5b Use NullCheckedInvocation in more places 2023-10-02 13:40:10 +01:00
reuk
6f657d2a9b
CachedValue: Suppress float equality warnings 2023-05-02 10:27:40 +01:00
reuk
28414a6af8
Global: Avoid floating-point equality checks where possible 2023-04-04 19:55:11 +01:00
reuk
ed3c40c2d1
ValueTree: Avoid void* 2023-01-12 19:13:57 +00:00
Tom Poole
417bd3b342 ValueTree: Add early exit when copying a ValueTree to itself 2022-08-02 10:14:29 +01:00
Tom Poole
2ec861d99e Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
Tom Poole
fe46afaf71 Value: Update refersToSameSourceAs documentation 2022-04-27 11:21:42 +01:00
Tom Poole
dea3fe60e4 Update copyright banners 2022-04-04 12:36:32 +01:00
ed
53c6d19ed9 ValueTreePropertyWithDefault: Remove message thread dependency 2021-12-14 17:01:58 +00:00
ed
08283c9969 ValueTreePropertyWithDefault: Initialise MessageManager in default setting unit test 2021-12-14 11:46:04 +00:00
ed
dea0f1638b Rename ValueWithDefault -> ValueTreePropertyWithDefault and store default value in shared Value object to propagate changes 2021-12-10 15:49:01 +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
reuk
31a7c62baf
Windows: Fix and suppress some analysis warnings
This fixes warnings that are emitted when building with the `-analyze`
flag enabled.
2021-05-26 15:34:26 +01:00
reuk
3baaad8b5b
XmlElement: Update loops to use new iterators 2021-01-28 20:14:11 +00:00
ed
009d685179 Updated all license headers 2020-06-29 08:30:22 +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
reuk
327f817b9b Copyrights: Update commercial/gpl headers to be gpl-only 2020-04-09 15:22:56 +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
ed
c2c98d3fdb Updated some incorrect documentation in ValueWithDefault 2020-02-20 09:32:44 +00:00
ed
e36736e0ec Fixed some typos 2020-01-06 14:04:16 +00:00
jules
49fa0f73e4 Added an overload to ValueTree::fromXml() which can take an XML string and parse it 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
ed
c96bf71488 Removed some empty ValueTree::Listener methods that are no longer needed 2019-03-22 17:28:14 +00:00
ed
20864a2f5f Made all of the ValueTree::Listener methods no longer pure virtual 2019-03-22 17:27:55 +00: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
306e7e4360 Fixed a few more places where doubles were not serialised to full accuracy 2019-02-11 14:44:19 +00:00
ed
3913269620 Revert commit 49359df and e5204ba to ensure that ValueWithDefault objects can be set to non-default empty strings 2019-02-08 17:26:44 +00:00
ed
a234721110 Added various clang-tidy modernize-* fixes 2019-01-31 15:15:31 +00:00
jules
da2b10ada6 Got rid of some methods which had inexplicably ended up marked both 'virtual' and 'override'. 2019-01-18 09:09:06 +00:00
jules
cadac817c6 Enabled some more warning flags in Xcode, and fixed the problems they caused 2019-01-11 09:52:10 +00:00
ed
665f1fbedf Fixed an incorrect return value from ValueWithDefault::isUsingDefault() 2019-01-02 16:34:54 +00:00
ed
e5204bafe9 Fixed some incorrect documentation in ValueWithDefault and added some unit tests to the class 2018-12-18 14:23:30 +00:00
ed
c29eea44e3 Added a getUndoManager() method to CachedValue and ValueWithDefault and made CachedValue weak referenceable 2018-12-18 14:22:59 +00:00
ed
eaf0f990d4 Replaced all uses of static_cast<Type&&> with std::move 2018-11-28 17:29:20 +00:00
ed
35890478a3 Added the JUCE_DECLARE_WEAK_REFERENCEABLE macro to ValueWithDefault and fixed some places which were potentially accessing a deleted ValueWithDefault object 2018-11-16 15:53:29 +00:00
jules
8166b0018d Reverted the change to ValueTree::toXmlString(), as omitting the XML header could break existing code (will address this differently in a future commit) 2018-10-17 11:34:57 +01:00
jules
e07782ff38 Tweaked ValueTree::toXmlString() to make it return a bare document without the XML header 2018-10-15 17:47:07 +01:00
jules
ab8202f04d Fixed a documentation typo 2018-09-10 11:45:24 +01:00
jules
e26049f141 Added assertions to Array to catch situations where a reference to a member is passed into an add() method. Also changed the form of StringArray method params to avoid this problem. 2018-08-13 10:22:23 +01:00
ed
a725f4e2b3 Fixed a bug in ValueTree::getSibling() + some misc cleanup 2018-08-02 08:52:21 +01:00
jules
4d753ed9e4 Added missing ValueTree::Iterator::operator== 2018-07-19 09:51:18 +01:00
jules
95a3f0b039 Whitespace 2018-07-03 11:51:36 +01:00
jules
1e6bbb8da9 Added some methods to allow ReferenceCountedObjectPtrs to be constructed or copied from references as well as pointers - as well as increasing safety, this actually makes things a bit more efficient as it skips a nullptr check. Updated lots of places in the code that could take advantage of this 2018-07-03 11:51:13 +01:00
jules
3a6ec3e56b Fixed a mistake in ValueTree::AddOrRemoveChildAction 2018-07-02 17:47:44 +01:00
jules
49aa9c9db4 Added flag JUCE_STRICT_REFCOUNTEDPOINTER which is recommended to avoid accidental leaks when using ref-counted pointers. Enabled this flag in the demo projects, and used it to help tidy up some dubious smart-pointer use 2018-06-26 14:06:52 +01:00
jules
eb093411fc Added method ValueTree::copyPropertiesAndChildrenFrom() 2018-06-25 17:06:41 +01:00