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
932756ef
Commit
932756ef
authored
Mar 05, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32/ComWorker: fix the FormatHResultError() return type
Casting to std::runtime_error loses information (and prevents RVO).
parent
78382654
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
HResult.hxx
src/win32/HResult.hxx
+1
-1
No files found.
src/win32/HResult.hxx
View file @
932756ef
...
@@ -88,7 +88,7 @@ static inline const std::error_category &hresult_category() noexcept {
...
@@ -88,7 +88,7 @@ static inline const std::error_category &hresult_category() noexcept {
return
hresult_category_instance
;
return
hresult_category_instance
;
}
}
gcc_printf
(
2
,
3
)
static
inline
std
::
runtime
_error
gcc_printf
(
2
,
3
)
static
inline
std
::
system
_error
FormatHResultError
(
HRESULT
result
,
const
char
*
fmt
,
...)
noexcept
{
FormatHResultError
(
HRESULT
result
,
const
char
*
fmt
,
...)
noexcept
{
std
::
va_list
args1
,
args2
;
std
::
va_list
args1
,
args2
;
va_start
(
args1
,
fmt
);
va_start
(
args1
,
fmt
);
...
...
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