Commit a30cf604 authored by Max Kellermann's avatar Max Kellermann

util/FormatString: add "noexcept"

parent c2b8b818
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#endif #endif
AllocatedString<> AllocatedString<>
FormatStringV(const char *fmt, va_list args) FormatStringV(const char *fmt, va_list args) noexcept
{ {
#ifndef WIN32 #ifndef WIN32
va_list tmp; va_list tmp;
...@@ -62,7 +62,7 @@ FormatStringV(const char *fmt, va_list args) ...@@ -62,7 +62,7 @@ FormatStringV(const char *fmt, va_list args)
} }
AllocatedString<> AllocatedString<>
FormatString(const char *fmt, ...) FormatString(const char *fmt, ...) noexcept
{ {
va_list args; va_list args;
va_start(args, fmt); va_start(args, fmt);
......
...@@ -32,7 +32,7 @@ template<typename T> class AllocatedString; ...@@ -32,7 +32,7 @@ template<typename T> class AllocatedString;
*/ */
gcc_nonnull_all gcc_nonnull_all
AllocatedString<char> 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 * Format into a newly allocated string. The caller frees the return
...@@ -40,6 +40,6 @@ FormatStringV(const char *fmt, va_list args); ...@@ -40,6 +40,6 @@ FormatStringV(const char *fmt, va_list args);
*/ */
gcc_nonnull(1) gcc_printf(1,2) gcc_nonnull(1) gcc_printf(1,2)
AllocatedString<char> AllocatedString<char>
FormatString(const char *fmt, ...); FormatString(const char *fmt, ...) noexcept;
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment