diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-07-06 16:49:27 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-07-07 08:06:54 +0000 |
commit | 286d1832e675bf1239d6fd3238d24eb50af36c10 (patch) | |
tree | e6458cc41179e43b6c63b92ac9bbf4cf7fe3e3a4 /src/tools | |
parent | 63c6efc29f5b0173f47712de55bccd5f06613128 (diff) |
clangpchmanagerbackend: Fix compiler warnings
"warning: catching polymorphic type ‘const class
Sqlite::StatementIsBusy’ by value [-Wcatch-value=]"
---[ Fields ]-----------------[ uncomment and edit as applicable ]---|
Change-Id: I84c1d3e21b36f291bc9adc075666fdf55d5ca6cc
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/clangpchmanagerbackend/source/precompiledheaderstorage.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tools/clangpchmanagerbackend/source/precompiledheaderstorage.h b/src/tools/clangpchmanagerbackend/source/precompiledheaderstorage.h index 16a6a669527..8592757692d 100644 --- a/src/tools/clangpchmanagerbackend/source/precompiledheaderstorage.h +++ b/src/tools/clangpchmanagerbackend/source/precompiledheaderstorage.h @@ -74,7 +74,7 @@ public: pchBuildTime.value); transaction.commit(); - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { deleteProjectPrecompiledHeader(projectPartId, pchBuildTime); } } @@ -88,7 +88,7 @@ public: deleteProjectPrecompiledHeaderStatement.write(projectPartId.projectPathId); transaction.commit(); - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { deleteProjectPrecompiledHeaders(projectPartIds); } } @@ -106,7 +106,7 @@ public: pchBuildTime.value); } transaction.commit(); - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { insertSystemPrecompiledHeaders(projectPartIds, pchPath, pchBuildTime); } } @@ -120,7 +120,7 @@ public: deleteSystemPrecompiledHeaderStatement.write(projectPartId.projectPathId); transaction.commit(); - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { deleteSystemPrecompiledHeaders(projectPartIds); } } @@ -134,7 +134,7 @@ public: deleteSystemAndProjectPrecompiledHeaderStatement.write(projectPartId.projectPathId); transaction.commit(); - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { deleteSystemAndProjectPrecompiledHeaders(projectPartIds); } } @@ -152,7 +152,7 @@ public: if (value) return *value; - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { return fetchSystemPrecompiledHeaderPath(projectPartId); } @@ -172,7 +172,7 @@ public: if (value) return *value; - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { return fetchPrecompiledHeader(projectPartId); } @@ -192,7 +192,7 @@ public: if (value) return *value; - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { return fetchPrecompiledHeaders(projectPartId); } @@ -212,7 +212,7 @@ public: if (value) return *value; - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { return fetchTimeStamps(projectPartId); } @@ -230,7 +230,7 @@ public: return filePaths; - } catch (const Sqlite::StatementIsBusy) { + } catch (const Sqlite::StatementIsBusy &) { return fetchAllPchPaths(); } } |