Skip to content

Commit dd365c7

Browse files
committed
use static constexpr
1 parent 5320996 commit dd365c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trantor/utils/Date.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <stdint.h>
1919
#include <string>
2020

21-
#define MICRO_SECONDS_PER_SEC 1000000LL
22-
2321
namespace trantor
2422
{
2523
/**
@@ -347,6 +345,8 @@ class TRANTOR_EXPORT Date
347345
std::swap(microSecondsSinceEpoch_, that.microSecondsSinceEpoch_);
348346
}
349347

348+
static constexpr long MICRO_SECONDS_PER_SEC = 1000000LL;
349+
350350
private:
351351
int64_t microSecondsSinceEpoch_{0};
352352
};

0 commit comments

Comments
 (0)