Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8beac03d
Commit
8beac03d
authored
5 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time/Convert: add `noexcept`
parent
4a49a558
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Convert.cxx
src/time/Convert.cxx
+2
-2
Convert.hxx
src/time/Convert.hxx
+2
-2
No files found.
src/time/Convert.cxx
View file @
8beac03d
...
@@ -69,7 +69,7 @@ LocalTime(std::chrono::system_clock::time_point tp)
...
@@ -69,7 +69,7 @@ LocalTime(std::chrono::system_clock::time_point tp)
#ifdef __GLIBC__
#ifdef __GLIBC__
std
::
chrono
::
system_clock
::
time_point
std
::
chrono
::
system_clock
::
time_point
TimeGm
(
struct
tm
&
tm
)
TimeGm
(
struct
tm
&
tm
)
noexcept
{
{
return
std
::
chrono
::
system_clock
::
from_time_t
(
timegm
(
&
tm
));
return
std
::
chrono
::
system_clock
::
from_time_t
(
timegm
(
&
tm
));
}
}
...
@@ -77,7 +77,7 @@ TimeGm(struct tm &tm)
...
@@ -77,7 +77,7 @@ TimeGm(struct tm &tm)
#endif
#endif
std
::
chrono
::
system_clock
::
time_point
std
::
chrono
::
system_clock
::
time_point
MakeTime
(
struct
tm
&
tm
)
MakeTime
(
struct
tm
&
tm
)
noexcept
{
{
return
std
::
chrono
::
system_clock
::
from_time_t
(
mktime
(
&
tm
));
return
std
::
chrono
::
system_clock
::
from_time_t
(
mktime
(
&
tm
));
}
}
This diff is collapsed.
Click to expand it.
src/time/Convert.hxx
View file @
8beac03d
...
@@ -56,7 +56,7 @@ LocalTime(std::chrono::system_clock::time_point tp);
...
@@ -56,7 +56,7 @@ LocalTime(std::chrono::system_clock::time_point tp);
*/
*/
gcc_pure
gcc_pure
std
::
chrono
::
system_clock
::
time_point
std
::
chrono
::
system_clock
::
time_point
TimeGm
(
struct
tm
&
tm
);
TimeGm
(
struct
tm
&
tm
)
noexcept
;
#endif
#endif
...
@@ -65,6 +65,6 @@ TimeGm(struct tm &tm);
...
@@ -65,6 +65,6 @@ TimeGm(struct tm &tm);
*/
*/
gcc_pure
gcc_pure
std
::
chrono
::
system_clock
::
time_point
std
::
chrono
::
system_clock
::
time_point
MakeTime
(
struct
tm
&
tm
);
MakeTime
(
struct
tm
&
tm
)
noexcept
;
#endif
#endif
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment