Skip to content
Snippets Groups Projects
Commit 65a0bbb0 authored by scott snyder's avatar scott snyder
Browse files

VP1Utils: Fix gcc8 warnings.

gcc8 warnings: Catching polymorphic exception by value.



Former-commit-id: 49d51d9b
parent 24aa6ab8
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
try {
t = storeGate()->retrieve<const T>(key.toStdString());
exception = false;
} catch (std::runtime_error e) {
} catch (const std::runtime_error& e) {
exception = true;
t = 0;
}
......
......@@ -56,7 +56,7 @@ bool VP1SGContentsHelper::contains( const CLID& id, const QString& key ) const
try {
contains = m_sg->contains(id,key.toStdString());
exception = false;
} catch (std::runtime_error e) {
} catch (const std::runtime_error& e) {
exception = true;
}
if (exception) {
......@@ -84,7 +84,7 @@ QStringList VP1SGContentsHelper::getKeys(const CLID& id) const
try {
keys = m_sg->keys(id);
exception = false;
} catch (std::runtime_error e) {
} catch (const std::runtime_error& e) {
exception = true;
}
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