Skip to content
Snippets Groups Projects
Commit cca0e252 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'gcc8.VP1Utils-20181001' into 'master'

VP1Utils: Fix gcc8 warnings.

See merge request atlas/athena!14626

Former-commit-id: c662d07d
parents c0b52090 65a0bbb0
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ inline const T* VP1SGAccessHelper::retrieve( const QString& key ) const ...@@ -30,7 +30,7 @@ inline const T* VP1SGAccessHelper::retrieve( const QString& key ) const
try { try {
t = storeGate()->retrieve<const T>(key.toStdString()); t = storeGate()->retrieve<const T>(key.toStdString());
exception = false; exception = false;
} catch (std::runtime_error e) { } catch (const std::runtime_error& e) {
exception = true; exception = true;
t = 0; t = 0;
} }
......
...@@ -56,7 +56,7 @@ bool VP1SGContentsHelper::contains( const CLID& id, const QString& key ) const ...@@ -56,7 +56,7 @@ bool VP1SGContentsHelper::contains( const CLID& id, const QString& key ) const
try { try {
contains = m_sg->contains(id,key.toStdString()); contains = m_sg->contains(id,key.toStdString());
exception = false; exception = false;
} catch (std::runtime_error e) { } catch (const std::runtime_error& e) {
exception = true; exception = true;
} }
if (exception) { if (exception) {
...@@ -84,7 +84,7 @@ QStringList VP1SGContentsHelper::getKeys(const CLID& id) const ...@@ -84,7 +84,7 @@ QStringList VP1SGContentsHelper::getKeys(const CLID& id) const
try { try {
keys = m_sg->keys(id); keys = m_sg->keys(id);
exception = false; exception = false;
} catch (std::runtime_error e) { } catch (const std::runtime_error& e) {
exception = true; exception = true;
} }
if (exception) { if (exception) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment