chore: replace typedef with using
This commit is contained in:
parent
cac63937ff
commit
bdffda9a2f
7 changed files with 11 additions and 11 deletions
|
|
@ -61,7 +61,7 @@ class IArchMultithread : public IInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! Type of thread entry point
|
//! Type of thread entry point
|
||||||
typedef void *(*ThreadFunc)(void *);
|
using ThreadFunc = void *(*)(void *);
|
||||||
//! Type of thread identifier
|
//! Type of thread identifier
|
||||||
using ThreadID = unsigned int;
|
using ThreadID = unsigned int;
|
||||||
//! Types of signals
|
//! Types of signals
|
||||||
|
|
@ -78,7 +78,7 @@ public:
|
||||||
kNUM_SIGNALS
|
kNUM_SIGNALS
|
||||||
};
|
};
|
||||||
//! Type of signal handler function
|
//! Type of signal handler function
|
||||||
typedef void (*SignalFunc)(ESignal, void *userData);
|
using SignalFunc = void (*)(ESignal, void *userData);
|
||||||
|
|
||||||
//! @name manipulators
|
//! @name manipulators
|
||||||
//@{
|
//@{
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ private:
|
||||||
void checkMissedLanguages() const;
|
void checkMissedLanguages() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef EResult (ServerProxy::*MessageParser)(const uint8_t *);
|
using MessageParser = EResult (ServerProxy::*)(const uint8_t *);
|
||||||
|
|
||||||
Client *m_client;
|
Client *m_client;
|
||||||
deskflow::IStream *m_stream;
|
deskflow::IStream *m_stream;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#include "common/IInterface.h"
|
#include "common/IInterface.h"
|
||||||
|
|
||||||
typedef int (*StartupFunc)(int, char **);
|
using StartupFunc = int (*)(int, char **);
|
||||||
|
|
||||||
namespace deskflow {
|
namespace deskflow {
|
||||||
class ArgsBase;
|
class ArgsBase;
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ public:
|
||||||
using ButtonToKeyMap = std::map<KeyButton, const KeyItem *>;
|
using ButtonToKeyMap = std::map<KeyButton, const KeyItem *>;
|
||||||
|
|
||||||
//! Callback type for \c foreachKey
|
//! Callback type for \c foreachKey
|
||||||
typedef void (*ForeachKeyCallback)(KeyID, int32_t group, KeyItem &, void *userData);
|
using ForeachKeyCallback = void (*)(KeyID, int32_t group, KeyItem &, void *userData);
|
||||||
|
|
||||||
//! @name manipulators
|
//! @name manipulators
|
||||||
//@{
|
//@{
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ A socket multiplexer job class that invokes a member function.
|
||||||
template <class T> class TSocketMultiplexerMethodJob : public ISocketMultiplexerJob
|
template <class T> class TSocketMultiplexerMethodJob : public ISocketMultiplexerJob
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef ISocketMultiplexerJob *(T::*Method)(ISocketMultiplexerJob *, bool, bool, bool);
|
using Method = ISocketMultiplexerJob *(T::*)(ISocketMultiplexerJob *, bool, bool, bool);
|
||||||
|
|
||||||
//! run() invokes \c object->method(arg)
|
//! run() invokes \c object->method(arg)
|
||||||
TSocketMultiplexerMethodJob(T *object, Method method, ArchSocket socket, bool readable, bool writeable);
|
TSocketMultiplexerMethodJob(T *object, Method method, ArchSocket socket, bool readable, bool writeable);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
class XWindowsUtil
|
class XWindowsUtil
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::vector<KeySym> KeySyms;
|
using KeySyms = std::vector<KeySym>;
|
||||||
|
|
||||||
//! Get property
|
//! Get property
|
||||||
/*!
|
/*!
|
||||||
|
|
@ -120,7 +120,7 @@ public:
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! Error handler type
|
//! Error handler type
|
||||||
typedef void (*ErrorHandler)(Display *, XErrorEvent *, void *userData);
|
using ErrorHandler = void (*)(Display *, XErrorEvent *, void *userData);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Ignore X11 errors.
|
Ignore X11 errors.
|
||||||
|
|
@ -151,7 +151,7 @@ public:
|
||||||
static void saveHandler(Display *, XErrorEvent *, void *);
|
static void saveHandler(Display *, XErrorEvent *, void *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef int (*XErrorHandler)(Display *, XErrorEvent *);
|
using XErrorHandler = int (*)(Display *, XErrorEvent *);
|
||||||
|
|
||||||
Display *m_display;
|
Display *m_display;
|
||||||
ErrorHandler m_handler;
|
ErrorHandler m_handler;
|
||||||
|
|
@ -174,7 +174,7 @@ private:
|
||||||
static void initKeyMaps();
|
static void initKeyMaps();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef std::map<KeySym, uint32_t> KeySymMap;
|
using KeySymMap = std::map<KeySym, uint32_t>;
|
||||||
|
|
||||||
static KeySymMap s_keySymToUCS4;
|
static KeySymMap s_keySymToUCS4;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ protected:
|
||||||
ClientClipboard m_clipboard[kClipboardEnd];
|
ClientClipboard m_clipboard[kClipboardEnd];
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef bool (ClientProxy1_0::*MessageParser)(const uint8_t *);
|
using MessageParser = bool (ClientProxy1_0::*)(const uint8_t *);
|
||||||
|
|
||||||
ClientInfo m_info;
|
ClientInfo m_info;
|
||||||
double m_heartbeatAlarm;
|
double m_heartbeatAlarm;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue