jules
|
7ed282f314
|
Fix for obscure order-of-deletion problems involving self-referenctial ReferenceCountedObjectPtrs
|
6 years ago |
jules
|
72266af609
|
Fixed a dumb mistake in the last ReferenceCountedObjectPtr change
|
6 years ago |
jules
|
95a3f0b039
|
Whitespace
|
6 years ago |
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
|
6 years ago |
jules
|
0a75197fa6
|
Tweaked ReferenceCountedObjectPtr to try to cause fewer ambiguities when comparing it with raw pointers
|
6 years ago |
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
|
6 years ago |
jules
|
aba7a80ffb
|
Added missing juce namespace to JUCE_DECLARE_WEAK_REFERENCEABLE macro
|
7 years ago |
hogliux
|
4ecd7eb8e8
|
Do not assert in ScopedPointer::reset if you are resetting to a nullptr
|
7 years ago |
ed
|
ddc2f9cc4c
|
Added an assertion to ScopedPointer to catch people resetting it to itself
|
7 years ago |
jules
|
87042769b6
|
Tidied up some more old typedefs
|
7 years ago |
jules
|
dee78f29f6
|
Misc cleanups and modernisation
|
7 years ago |
jules
|
38295f332b
|
Converted some old typedefs to using declarations
|
7 years ago |
jules
|
c6c709f796
|
Fixed a minor documentation typo
|
7 years ago |
Tom Poole
|
ab863a6dc2
|
Replaced all usage of ScopedPointer with std::unique_ptr
|
7 years ago |
jules
|
8e280f3454
|
Removed some erroneous casts from ReferenceCountedObjectPtr that allowed base classes to be implicitly converted to derived classes
|
7 years ago |
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
|
7 years ago |
Tom Poole
|
4229dc0a4f
|
Made a lot of ScopedPointer usage conform to the std::unique_ptr interface
|
7 years ago |
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
|
7 years ago |
ed
|
cdbc28c18b
|
Add documentation tags
|
7 years ago |
Tom Poole
|
f1af3908d5
|
Documentation fixes
|
7 years ago |
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
|
7 years ago |
jules
|
48a5fbd333
|
Another batch of ScopedPointer cleanups
|
7 years ago |
jules
|
3ec5c17bb1
|
Misc cleanups relating to ScopedPointer
|
7 years ago |
jules
|
78791be3c5
|
Deleted some old deprecated methods from Component, and tidied a few things up
|
7 years ago |
jules
|
89b4e13423
|
Fixed some incorrect documentation in the singleton macros
|
7 years ago |
jules
|
faa847f443
|
Added a method OptionalScopedPointer::reset()
|
7 years ago |
jules
|
22ad29baba
|
Workaround for a VS compiler warning
|
7 years ago |
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!
|
7 years ago |
Tom Poole
|
170cc39858
|
Fixed data races in the Atomic and AbstractFifo classes
|
7 years ago |
Tom Poole
|
0f6cfda823
|
Removed a legacy Mac implementation of Atomic
|
7 years ago |
jules
|
f85d706131
|
Some minor formatting and comment fixes
|
7 years ago |
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)
|
7 years ago |
hogliux
|
b20141e90e
|
Fixed some documentation in JUCE Atomic class
|
7 years ago |
jules
|
85d9a4cf90
|
Fixed an MSVC warning
|
7 years ago |
jules
|
801dec0905
|
Added some ScopedPointer::reset() methods to make its interface more compatible with std::unique_ptr
|
7 years ago |
hogliux
|
3eacd386ab
|
Fixed some documentation in JUCE Atomic class
|
7 years ago |
jules
|
bf64d88de8
|
Added a method WeakReference::Master::getNumActiveWeakReferences()
|
7 years ago |
jules
|
a7c56fd89b
|
Simplified and tidied up a few things in input/output streams and MemoryBlock
|
7 years ago |
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
|
7 years ago |
jules
|
be3e9161be
|
Fixed a typo in the previous commit
|
7 years ago |
jules
|
970eda679e
|
Added 'final' keyword to a lot of classes from which you really shouldn't be inheriting!
|
7 years ago |
tpoole
|
aa338866fb
|
Minor documentation fixes
|
7 years ago |
tpoole
|
7d2f59909e
|
Minor documentation fixes
|
7 years ago |
jules
|
eca20d1e4a
|
Added some missing copy and move constructors in the ReferenceCountedObject classes
|
7 years ago |
jules
|
1aaa598a5f
|
Added JUCE_DECLARE_WEAK_REFERENCEABLE macro to make it easier to creat weak-referenceable classes
|
7 years ago |
jules
|
d05594eafe
|
Fixed a problem in a static assert in Atomic.
|
7 years ago |
jules
|
a5eebb37ef
|
whitespace
|
7 years ago |
jules
|
e6ae3f7aa7
|
Fixed a problem in a static assert in Atomic.
|
7 years ago |
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
|
7 years ago |
tpoole
|
9600016294
|
Fixed some undefined (or implementation defined) behavior
|
7 years ago |