From 4db7bffd819dd9b4033673384e15c31ac3f9da35 Mon Sep 17 00:00:00 2001
From: Edward Brown <edward.brown@stfc.ac.uk>
Date: Wed, 14 Mar 2018 14:54:39 +0000
Subject: [PATCH] Re #22048: Applied fixes to Framework/Types.

---
 Framework/Types/src/Core/DateAndTime.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Framework/Types/src/Core/DateAndTime.cpp b/Framework/Types/src/Core/DateAndTime.cpp
index f421c9b045f..c922c025c41 100644
--- a/Framework/Types/src/Core/DateAndTime.cpp
+++ b/Framework/Types/src/Core/DateAndTime.cpp
@@ -726,7 +726,7 @@ time_duration DateAndTime::durationFromSeconds(double duration) {
   else if (duration <= std::numeric_limits<int>::min())
     return boost::posix_time::time_duration(boost::posix_time::min_date_time);
 
-  typedef boost::posix_time::time_res_traits::sec_type sec_type;
+  using sec_type = boost::posix_time::time_res_traits::sec_type;
 
 #ifdef BOOST_DATE_TIME_HAS_NANOSECONDS
   // Nanosecond resolution
-- 
GitLab