susumu.yata
null+****@clear*****
Thu Dec 6 10:04:13 JST 2012
susumu.yata 2012-12-06 10:04:13 +0900 (Thu, 06 Dec 2012) New Revision: 67fe352741c5979e8580326c2630b5611d8fb6fa https://github.com/groonga/grnxx/commit/67fe352741c5979e8580326c2630b5611d8fb6fa Log: Use the default constructor. (grnxx::Duration) Modified files: lib/duration.hpp test/test_duration.cpp Modified: lib/duration.hpp (+1 -1) =================================================================== --- lib/duration.hpp 2012-12-05 21:35:26 +0900 (3bb136d) +++ lib/duration.hpp 2012-12-06 10:04:13 +0900 (b77625c) @@ -25,7 +25,7 @@ namespace grnxx { class Duration { public: - constexpr Duration() : nanoseconds_(0) {} + Duration() = default; explicit constexpr Duration(int64_t nanoseconds) : nanoseconds_(nanoseconds) {} Modified: test/test_duration.cpp (+0 -1) =================================================================== --- test/test_duration.cpp 2012-12-05 21:35:26 +0900 (8319a07) +++ test/test_duration.cpp 2012-12-06 10:04:13 +0900 (4cb437a) @@ -26,7 +26,6 @@ int main() { grnxx::LOGGER_ENABLE_COUT); grnxx::Logger::set_max_level(grnxx::NOTICE_LOGGER); - assert(grnxx::Duration().nanoseconds() == 0); assert(grnxx::Duration(123).nanoseconds() == 123); assert(grnxx::Duration::nanoseconds(123).nanoseconds() == 123); -------------- next part -------------- HTML����������������������������... Descargar