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
a30cf604
Commit
a30cf604
authored
May 16, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/FormatString: add "noexcept"
parent
c2b8b818
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
FormatString.cxx
src/util/FormatString.cxx
+2
-2
FormatString.hxx
src/util/FormatString.hxx
+2
-2
No files found.
src/util/FormatString.cxx
View file @
a30cf604
...
...
@@ -28,7 +28,7 @@
#endif
AllocatedString
<>
FormatStringV
(
const
char
*
fmt
,
va_list
args
)
FormatStringV
(
const
char
*
fmt
,
va_list
args
)
noexcept
{
#ifndef WIN32
va_list
tmp
;
...
...
@@ -62,7 +62,7 @@ FormatStringV(const char *fmt, va_list args)
}
AllocatedString
<>
FormatString
(
const
char
*
fmt
,
...)
FormatString
(
const
char
*
fmt
,
...)
noexcept
{
va_list
args
;
va_start
(
args
,
fmt
);
...
...
src/util/FormatString.hxx
View file @
a30cf604
...
...
@@ -32,7 +32,7 @@ template<typename T> class AllocatedString;
*/
gcc_nonnull_all
AllocatedString
<
char
>
FormatStringV
(
const
char
*
fmt
,
va_list
args
);
FormatStringV
(
const
char
*
fmt
,
va_list
args
)
noexcept
;
/**
* Format into a newly allocated string. The caller frees the return
...
...
@@ -40,6 +40,6 @@ FormatStringV(const char *fmt, va_list args);
*/
gcc_nonnull
(
1
)
gcc_printf
(
1
,
2
)
AllocatedString
<
char
>
FormatString
(
const
char
*
fmt
,
...);
FormatString
(
const
char
*
fmt
,
...)
noexcept
;
#endif
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