projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace Protocol::Handler enum with enum class
[quassel.git]
/
src
/
common
/
protocol.h
diff --git
a/src/common/protocol.h
b/src/common/protocol.h
index
f3c18e4
..
bf6c401
100644
(file)
--- a/
src/common/protocol.h
+++ b/
src/common/protocol.h
@@
-42,7
+42,7
@@
enum Feature {
};
};
-enum Handler {
+enum
class
Handler {
SignalProxy,
AuthHandler
};
SignalProxy,
AuthHandler
};
@@
-51,7
+51,7
@@
enum Handler {
/*** Handshake, handled by AuthHandler ***/
struct HandshakeMessage {
/*** Handshake, handled by AuthHandler ***/
struct HandshakeMessage {
- inline Handler handler() const { return AuthHandler; }
+ inline Handler handler() const { return
Handler::
AuthHandler; }
};
};
@@
-179,7
+179,7
@@
struct SessionState : public HandshakeMessage
struct SignalProxyMessage
{
struct SignalProxyMessage
{
- inline Handler handler() const { return SignalProxy; }
+ inline Handler handler() const { return
Handler::
SignalProxy; }
};
};