clang-format

This commit is contained in:
Tatsuhiro Tsujikawa 2017-10-14 11:45:41 +09:00
parent 56ee3d4820
commit 5fa1938691
2 changed files with 12 additions and 13 deletions

View File

@ -72,8 +72,7 @@ namespace util {
#ifdef _WIN32
// inet_pton-wrapper for Windows
static int inet_pton(int af, const char *src, void *dst)
{
static int inet_pton(int af, const char *src, void *dst) {
#if _WIN32_WINNT >= 0x0600
return InetPtonA(af, src, dst);
#else
@ -91,7 +90,6 @@ static int inet_pton(int af, const char *src, void *dst)
}
#endif // _WIN32
const char UPPER_XDIGITS[] = "0123456789ABCDEF";
bool in_rfc3986_unreserved_chars(const char c) {
@ -383,7 +381,8 @@ char *iso8601_date(char *res, int64_t ms) {
namespace bt = boost::posix_time;
// one-time definition of the locale that is used to parse UTC strings
// (note that the time_input_facet is ref-counted and deleted automatically)
static const std::locale ptime_locale(std::locale::classic(),
static const std::locale
ptime_locale(std::locale::classic(),
new bt::time_input_facet("%a, %d %b %Y %H:%M:%S GMT"));
#endif //_WIN32