(clang format) fix indent and make (rarely) accessor/setters in class on a single line

This commit is contained in:
Benjamin Sergeant
2019-05-31 00:53:14 -07:00
parent 285386e47f
commit ba4a9e1586
5 changed files with 12 additions and 45 deletions

View File

@ -16,37 +16,16 @@ namespace snake
class SnakeConnectionState : public ix::ConnectionState
{
public:
std::string getNonce()
{
return _nonce;
}
void setNonce(const std::string& nonce)
{
_nonce = nonce;
}
std::string getNonce() { return _nonce; }
void setNonce(const std::string& nonce) { _nonce = nonce; }
std::string appkey()
{
return _appkey;
}
void setAppkey(const std::string& appkey)
{
_appkey = appkey;
}
std::string appkey() { return _appkey; }
void setAppkey(const std::string& appkey) { _appkey = appkey; }
std::string role()
{
return _role;
}
void setRole(const std::string& role)
{
_role = role;
}
std::string role() { return _role; }
void setRole(const std::string& role) { _role = role; }
ix::RedisClient& redisClient()
{
return _redisClient;
}
ix::RedisClient& redisClient() { return _redisClient; }
std::future<void> fut;