We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d0bce commit 16d0862Copy full SHA for 16d0862
src/mtconnect/utilities.hpp
@@ -241,11 +241,11 @@ namespace mtconnect {
241
/// @brief Thread safe localtime function that uses localtime_s or localtime_r based on platform
242
/// @param[in] timer pointer to time_t
243
/// @param[out] buf pointer to tm struct to fill
244
- inline auto safe_localtime(const std::time_t* timer, std::tm* buf) {
+ inline void safe_localtime(const std::time_t* timer, std::tm* buf) {
245
#ifdef _WINDOWS
246
- return localtime_s(buf, timer);
+ localtime_s(buf, timer);
247
#else
248
- return localtime_r(timer, buf);
+ localtime_r(timer, buf);
249
#endif
250
}
251
0 commit comments