changeset 29159:a88f6107aceb

maint: Use octave::execution_exception in catch block in cset 5b8885af4e2f. * graphics.cc (str2rgb): Replace C++ catch (...) block with more specific catch (const octave::execution_exception&).
author Rik <rik@octave.org>
date Mon, 07 Dec 2020 13:34:49 -0800
parents f28c657c9f42
children ee20ff0ceb60
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Mon Dec 07 19:59:18 2020 +0100
+++ b/libinterp/corefcn/graphics.cc	Mon Dec 07 13:34:49 2020 -0800
@@ -1411,7 +1411,7 @@
           tmp_rgb[2] = static_cast<double> (stoi (str.substr (5,2), nullptr, 16))
                        / 255.0;
         }
-      catch (...)
+      catch (const octave::execution_exception&)
         {
           retval = false;
         }
@@ -1427,7 +1427,7 @@
           tmp_rgb[2] = static_cast<double> (stoi (str.substr (3,1), nullptr, 16))
                        / 15.0;
         }
-      catch (...)
+      catch (const octave::execution_exception&)
         {
           retval = false;
         }