Commit 4511145d authored by Niels's avatar Niels

removing unused catch variables (fixes #180)

parent 151d43f6
......@@ -2645,7 +2645,7 @@ class basic_json
assert(m_value.array != nullptr);
return m_value.array->at(idx);
}
catch (std::out_of_range& e)
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("array index " + std::to_string(idx) + " is out of range");
......@@ -2689,7 +2689,7 @@ class basic_json
assert(m_value.array != nullptr);
return m_value.array->at(idx);
}
catch (std::out_of_range& e)
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("array index " + std::to_string(idx) + " is out of range");
......@@ -2737,7 +2737,7 @@ class basic_json
assert(m_value.object != nullptr);
return m_value.object->at(key);
}
catch (std::out_of_range& e)
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("key '" + key + "' not found");
......@@ -2785,7 +2785,7 @@ class basic_json
assert(m_value.object != nullptr);
return m_value.object->at(key);
}
catch (std::out_of_range& e)
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("key '" + key + "' not found");
......
......@@ -2645,7 +2645,7 @@ class basic_json
assert(m_value.array != nullptr);
return m_value.array->at(idx);
}
catch (std::out_of_range& e)
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("array index " + std::to_string(idx) + " is out of range");
......@@ -2689,7 +2689,7 @@ class basic_json
assert(m_value.array != nullptr);
return m_value.array->at(idx);
}
catch (std::out_of_range& e)
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("array index " + std::to_string(idx) + " is out of range");
......@@ -2737,7 +2737,7 @@ class basic_json
assert(m_value.object != nullptr);
return m_value.object->at(key);
}
catch (std::out_of_range& e)
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("key '" + key + "' not found");
......@@ -2785,7 +2785,7 @@ class basic_json
assert(m_value.object != nullptr);
return m_value.object->at(key);
}
catch (std::out_of_range& e)
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("key '" + key + "' not found");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment