From 50724bfe137703c51084481c9741b8bcddea1f67 Mon Sep 17 00:00:00 2001 From: Tristan Su Date: Wed, 27 Jun 2018 19:46:46 +0800 Subject: [PATCH] Catch exception by reference instead of by value --- sql/gis/is_simple.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/gis/is_simple.cc b/sql/gis/is_simple.cc index ed539f6f1af..c6f75741a90 100644 --- a/sql/gis/is_simple.cc +++ b/sql/gis/is_simple.cc @@ -123,7 +123,7 @@ bool Is_simple::eval(const Geometrycollection &g) const { auto extension_of_touches = [&](const Geometry &g1, const Geometry &g2) { try { return touches(&g1, &g2); - } catch (null_value_exception) { + } catch (const null_value_exception &) { return false; } };