reuk
28f2157912
Convert ignoreUnused to [[maybe_unused]]
2 years ago
reuk
7c14c1fcd7
Use more concise stdlib type aliases
2 years ago
attila
e6cf6ab064
ListenerList: Modify iterator during removals to guarantee callback
3 years ago
Tom Poole
dea3fe60e4
Update copyright banners
3 years ago
Tom Poole
c072b1bc8e
Fix some typos
3 years ago
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.
3 years ago
reuk
ff758a53b4
Array: Fix perfect forwarding when adding elements
4 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
ed
e36736e0ec
Fixed some typos
5 years ago
Tom Poole
a9a0f6b92f
Enforced more comprehensive const-correctness in the JUCE container classes
6 years ago
jules
aaad33ce57
Fixed a couple of asan memory access warnings
6 years ago
Tom Poole
bd211ce7df
Fixed a bug limiting the extent of removeRange in ReferenceCountedArray
6 years ago
Tom Poole
34bbb94e2f
Fixed some documentation errors
6 years ago
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.
6 years ago
Tom Poole
f453d4ac4e
Replaced ArrayAllocationBase with a safer storage container
6 years ago
hogliux
5799a4ee5b
MSVC: Added a workaround for a compiler bug
7 years ago
jules
a1b6f2aa34
Whitespace
7 years ago
jules
172c580200
Added an assertion in Array::removeLast
7 years ago
jules
108d79d8d9
Made Array::addArray() more flexible, so it can read from other array classes
7 years ago
jules
38295f332b
Converted some old typedefs to using declarations
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
ed
cdbc28c18b
Add documentation tags
7 years ago
jules
f4963a27d7
Minor optimisations and cleanups in Array
7 years ago
jules
6cb79e1414
Added back std::initializer_list constructors for Array and StringArray in addition to the variadic constructors
7 years ago
jules
acf28c6fa7
Removed the explicitness of the Array single-item constructors
7 years ago
jules
7ece1b4135
Changed Array and StringArray to use variadic template constructors instead of initializer_lists, so that we can use them on old platforms
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
jules
7c6f3d40b6
Tidied up some method calls involving HeapBlock
7 years ago
jules
df14b18c17
cleaned up a method in Array
7 years ago
jules
86deea87ce
Added variadic add methods to Array
7 years ago
jules
e7923af185
Got rid of the old PARAMETER_TYPE macro - this isn't needed as the same thing can be done directly with the TypeHelpers::ParameterType helper class
8 years ago
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
8 years ago
hogliux
2da1bc5f41
Replace include guards with "#pragma once"
8 years ago
hogliux
9f3fb1c0a6
Added a compiler error if your compiler is too old and removed numerous code checks for old compilers which are now deprecated
8 years ago
tpoole
2e84129479
Updated the juce_audio_basics, juce_audio_devices, juce_blocks_basics, juce_core and juce_events modules to a new ISC license
8 years ago
Timur Doumler
e8cdc65357
Fixed Array::remove (ElementType*) so that if given an invalid pointer, it doesn't attempt to remove anything after the assert.
8 years ago
Timur Doumler
b94a68c9ec
Array: added new method removeIf to remove objects based on an arbitrary condition. Made removeIf and removeAllInstancesOf return the number of objects removed.
8 years ago
jules
49b9619176
Added a cast to avoid a warning in Array
8 years ago
jules
b439452edd
Changed the Array::remove() method to return void, and added an Array::removeAndReturn() method to replace the old functionality
8 years ago
Timur Doumler
fc69dc00db
Changed addIfNotAlreadyThere method of all array classes to return a bool, indicating whether the object was added or not.
9 years ago
Timur Doumler
17497122e4
Consistency fix: renamed Array::empty() to Array::isEmpty() and added a method isEmpty() to all container classes which didn't have it yet.
9 years ago
jules
4583fa3fbf
Used the ignoreUnused() function to tidy up some old code
9 years ago
jules
02492b36b9
Lots of small whitespace tweaks.
9 years ago
jules
c334530f29
Added new method Array::remove that takes an element pointer.
9 years ago
jules
4fd8913037
Added a new method Array::sort() which uses the default comparator for simple types
9 years ago
jules
399e248488
Added new module: juce_osc
9 years ago
hogliux
c7b8e77031
Update copyright notice
9 years ago
jules
d723d58b16
Documentation fix.
10 years ago
jules
8c66a5e767
Added flag JUCE_COMPILER_SUPPORTS_INITIALIZER_LIST, and implemented some constructors for StringArray and Array that use C+++11 initialiser lists.
10 years ago