mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Converted some old typedefs to using declarations
This commit is contained in:
parent
88071b29e6
commit
38295f332b
69 changed files with 392 additions and 411 deletions
|
|
@ -33,7 +33,7 @@ namespace
|
|||
template <typename CharPointerType>
|
||||
class OSCPatternMatcherImpl
|
||||
{
|
||||
typedef CharPointerType CharPtr;
|
||||
using CharPtr = CharPointerType;
|
||||
|
||||
public:
|
||||
//==============================================================================
|
||||
|
|
@ -266,7 +266,7 @@ namespace
|
|||
template <typename OSCAddressType>
|
||||
struct OSCAddressTokeniser
|
||||
{
|
||||
typedef OSCAddressTokeniserTraits<OSCAddressType> Traits;
|
||||
using Traits = OSCAddressTokeniserTraits<OSCAddressType>;
|
||||
|
||||
//==============================================================================
|
||||
static bool isPrintableASCIIChar (juce_wchar c) noexcept
|
||||
|
|
|
|||
|
|
@ -525,7 +525,7 @@ private:
|
|||
//==============================================================================
|
||||
void callListeners (const OSCBundle::Element& content)
|
||||
{
|
||||
typedef OSCReceiver::Listener<OSCReceiver::MessageLoopCallback> Listener;
|
||||
using Listener = OSCReceiver::Listener<OSCReceiver::MessageLoopCallback>;
|
||||
|
||||
if (content.isMessage())
|
||||
{
|
||||
|
|
@ -541,7 +541,7 @@ private:
|
|||
|
||||
void callRealtimeListeners (const OSCBundle::Element& content)
|
||||
{
|
||||
typedef OSCReceiver::Listener<OSCReceiver::RealtimeCallback> Listener;
|
||||
using Listener = OSCReceiver::Listener<OSCReceiver::RealtimeCallback>;
|
||||
|
||||
if (content.isMessage())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ public:
|
|||
The arguments passed are the pointer to and the data of the buffer that
|
||||
the OSCReceiver has failed to parse.
|
||||
*/
|
||||
typedef std::function<void (const char* data, int dataSize)> FormatErrorHandler;
|
||||
using FormatErrorHandler = std::function<void (const char* data, int dataSize)>;
|
||||
|
||||
/** Installs a custom error handler which is called in case the receiver
|
||||
encounters a stream it cannot parse as an OSC bundle or OSC message.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue