1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00
Commit graph

180 commits

Author SHA1 Message Date
Tom Poole
b6c615e6c4 Fixed a bug adding derived ReferenceCountedObjects to base class ReferenceCountedArrays 2018-07-18 10:45:48 +01:00
Tom Poole
c5862246b7 Prevented some implicit casts to bool using JUCE_STRICT_REFCOUNTEDPOINTER 2018-07-17 09:10:43 +01:00
Tom Poole
6cff481c6a Fixed some gcc 8 compiler warnings 2018-07-11 09:17:31 +01:00
jules
7ed282f314 Fix for obscure order-of-deletion problems involving self-referenctial ReferenceCountedObjectPtrs 2018-07-05 16:46:11 +01:00
jules
72266af609 Fixed a dumb mistake in the last ReferenceCountedObjectPtr change 2018-07-04 08:58:42 +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
0a75197fa6 Tweaked ReferenceCountedObjectPtr to try to cause fewer ambiguities when comparing it with raw pointers 2018-07-02 12:45:24 +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
aba7a80ffb Added missing juce namespace to JUCE_DECLARE_WEAK_REFERENCEABLE macro 2018-05-22 17:33:55 +01:00
hogliux
4ecd7eb8e8 Do not assert in ScopedPointer::reset if you are resetting to a nullptr 2018-05-15 10:37:57 +01:00
ed
ddc2f9cc4c Added an assertion to ScopedPointer to catch people resetting it to itself 2018-05-14 17:08:48 +01:00
jules
87042769b6 Tidied up some more old typedefs 2018-05-11 14:44:51 +01:00
jules
dee78f29f6 Misc cleanups and modernisation 2018-05-11 12:46:30 +01:00
jules
38295f332b Converted some old typedefs to using declarations 2018-05-03 09:59:05 +01:00
jules
c6c709f796 Fixed a minor documentation typo 2018-04-23 08:43:32 +01:00
Tom Poole
ab863a6dc2 Replaced all usage of ScopedPointer with std::unique_ptr 2018-04-19 20:27:47 +01:00
jules
8e280f3454 Removed some erroneous casts from ReferenceCountedObjectPtr that allowed base classes to be implicitly converted to derived classes 2018-04-18 15:17:04 +01:00
Tom Poole
c7c26fa9f0 Removed the OS X 10.5 and 10.6 deployment target options from the Projucer and enabled more C++11 features across all platforms 2018-04-17 18:46:55 +01:00
Tom Poole
4229dc0a4f Made a lot of ScopedPointer usage conform to the std::unique_ptr interface 2018-04-10 18:34:20 +01:00
jules
a632b57e7a Simplified ByteOrder, and made it less susceptible to UB when reading from non-aligned addresses. Removed ambiguous method ByteOrder::littleEndianInt (c1, c2, c3, c4), which was probably producing the wrong behaviour on big-endian systems 2018-03-26 12:25:02 +01:00
ed
cdbc28c18b Add documentation tags 2018-03-15 12:10:32 +00:00
Tom Poole
f1af3908d5 Documentation fixes 2018-03-11 09:25:09 +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
48a5fbd333 Another batch of ScopedPointer cleanups 2018-01-10 14:49:57 +00:00
jules
3ec5c17bb1 Misc cleanups relating to ScopedPointer 2018-01-08 18:03:26 +00:00
jules
78791be3c5 Deleted some old deprecated methods from Component, and tidied a few things up 2017-12-20 15:30:40 +00:00
jules
89b4e13423 Fixed some incorrect documentation in the singleton macros 2017-12-14 14:14:57 +00:00
jules
faa847f443 Added a method OptionalScopedPointer::reset() 2017-12-13 11:05:22 +00:00
jules
22ad29baba Workaround for a VS compiler warning 2017-12-12 17:40:17 +00:00
jules
58a99ff139 Dragged the singleton macros into the 21st century.. Cleaned up their implementation and gave them new upper-case names to match juce official style. The old names are still defined to avoid breaking old code, but please update before they get deprecated! 2017-12-12 16:24:40 +00:00
Tom Poole
170cc39858 Fixed data races in the Atomic and AbstractFifo classes 2017-12-04 17:22:05 +00:00
Tom Poole
0f6cfda823 Removed a legacy Mac implementation of Atomic 2017-12-04 13:49:31 +00:00
jules
f85d706131 Some minor formatting and comment fixes 2017-11-28 17:46:15 +00:00
jules
2dc9316420 Misc ScopedPointer changes to start using reset() and get() rather than assignments and casts (part of an ongoing drift towards more std::unique_ptr compatibility) 2017-11-01 17:41:06 +00:00
jules
85d9a4cf90 Fixed an MSVC warning 2017-10-31 16:25:35 +00:00
jules
801dec0905 Added some ScopedPointer::reset() methods to make its interface more compatible with std::unique_ptr 2017-10-31 16:19:08 +00:00
hogliux
3eacd386ab Fixed some documentation in JUCE Atomic class 2017-10-26 17:42:41 +01:00
jules
bf64d88de8 Added a method WeakReference::Master::getNumActiveWeakReferences() 2017-10-19 11:57:56 +01:00
jules
a7c56fd89b Simplified and tidied up a few things in input/output streams and MemoryBlock 2017-10-13 12:55:46 +01:00
jules
369d59f656 Added a template to allow the HeapBlock class to be given signed ints or other types that are not size_t for its size parameters 2017-10-11 12:10:58 +01:00
jules
be3e9161be Fixed a typo in the previous commit 2017-10-09 12:53:25 +01:00
jules
970eda679e Added 'final' keyword to a lot of classes from which you really shouldn't be inheriting! 2017-10-09 12:38:06 +01:00
tpoole
7d2f59909e Minor documentation fixes 2017-10-06 12:33:55 +01:00
jules
eca20d1e4a Added some missing copy and move constructors in the ReferenceCountedObject classes 2017-10-02 14:53:54 +01:00
jules
1aaa598a5f Added JUCE_DECLARE_WEAK_REFERENCEABLE macro to make it easier to creat weak-referenceable classes 2017-09-27 12:57:55 +01:00
jules
a5eebb37ef whitespace 2017-09-20 14:04:43 +01:00
jules
e6ae3f7aa7 Fixed a problem in a static assert in Atomic. 2017-09-20 13:57:38 +01:00
jules
eda613c6db Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools 2017-09-08 08:59:55 +01:00
tpoole
9600016294 Fixed some undefined (or implementation defined) behavior 2017-08-24 18:16:03 +01:00