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 178a7e5 commit 972961dCopy full SHA for 972961d
libxml++/exceptions/wrapped_exception.cc
@@ -22,7 +22,7 @@ namespace xmlpp
22
23
#ifdef LIBXMLXX_HAVE_EXCEPTION_PTR
24
25
-wrapped_exception::wrapped_exception(std::exception_ptr exception_ptr)
+wrapped_exception::wrapped_exception(const std::exception_ptr& exception_ptr)
26
: exception("Wrapped exception"), exception_ptr_(exception_ptr)
27
{
28
}
libxml++/exceptions/wrapped_exception.h
@@ -39,7 +39,7 @@ class wrapped_exception : public exception
39
40
public:
41
LIBXMLPP_API
42
- explicit wrapped_exception(std::exception_ptr exception_ptr);
+ explicit wrapped_exception(const std::exception_ptr& exception_ptr);
43
LIBXMLPP_API ~wrapped_exception() noexcept override;
44
45
LIBXMLPP_API void raise() const override;
0 commit comments