diff options
author | Björn Esser <besser82@fedoraproject.org> | 2019-02-11 15:43:14 +0100 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@gmail.com> | 2019-02-11 17:38:15 -0800 |
commit | b04a700ba4c867da01dc926338c2108981c2b376 (patch) | |
tree | 0ea50608f664683c58bfe1e0956c3e27ba359de6 | |
parent | 7930ccc3f5eca55c5866fc7b1d2476f46b8cec17 (diff) | |
download | RxCpp-b04a700ba4c867da01dc926338c2108981c2b376.tar.gz |
Fix 'Wcatch-value'.
This warning is reported by GCC 9.
-rw-r--r-- | Rx/v2/examples/doxygen/composite_exception.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Rx/v2/examples/doxygen/composite_exception.cpp b/Rx/v2/examples/doxygen/composite_exception.cpp index 6cbfce3..00f351d 100644 --- a/Rx/v2/examples/doxygen/composite_exception.cpp +++ b/Rx/v2/examples/doxygen/composite_exception.cpp @@ -17,11 +17,11 @@ SCENARIO("composite_exception sample"){ [](std::exception_ptr composite_e) { printf("OnError %s\n", rxu::what(composite_e).c_str()); try { std::rethrow_exception(composite_e); } - catch(rxcpp::composite_exception ce) { + catch(rxcpp::composite_exception const &ce) { for(std::exception_ptr particular_e : ce.exceptions) { try{ std::rethrow_exception(particular_e); } - catch(std::runtime_error error) { printf(" *** %s\n", error.what()); } + catch(std::runtime_error const &error) { printf(" *** %s\n", error.what()); } } } |