forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user