Skip to content

Commit 972961d

Browse files
committed
clang-tidy: use const ref for exeption_ptr
Found with performance-unnecessary-value-param Signed-off-by: Rosen Penev <rosenp@gmail.com>
1 parent 178a7e5 commit 972961d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libxml++/exceptions/wrapped_exception.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace xmlpp
2222

2323
#ifdef LIBXMLXX_HAVE_EXCEPTION_PTR
2424

25-
wrapped_exception::wrapped_exception(std::exception_ptr exception_ptr)
25+
wrapped_exception::wrapped_exception(const std::exception_ptr& exception_ptr)
2626
: exception("Wrapped exception"), exception_ptr_(exception_ptr)
2727
{
2828
}

libxml++/exceptions/wrapped_exception.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class wrapped_exception : public exception
3939
{
4040
public:
4141
LIBXMLPP_API
42-
explicit wrapped_exception(std::exception_ptr exception_ptr);
42+
explicit wrapped_exception(const std::exception_ptr& exception_ptr);
4343
LIBXMLPP_API ~wrapped_exception() noexcept override;
4444

4545
LIBXMLPP_API void raise() const override;

0 commit comments

Comments
 (0)