mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 17:43:23 -08:00
[Tests] Define ~SettingsCache in the benchmark mock
The mock includes cache_settings.h, which declares the destructor out of line, so the vtable emitted for the mock SettingsCache references a definition that never exists and picture_loader_benchmark_test fails to link. Default it: the real destructor only frees release channels, and the mock creates none.
This commit is contained in:
parent
60dbbf2883
commit
95f8b538d8
1 changed files with 4 additions and 0 deletions
|
|
@ -144,6 +144,10 @@ SettingsCache::SettingsCache()
|
||||||
loadPaths();
|
loadPaths();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The real destructor deletes the release channels; this mock never creates any,
|
||||||
|
// but the vtable still needs the definition.
|
||||||
|
SettingsCache::~SettingsCache() = default;
|
||||||
|
|
||||||
void SettingsCache::loadPaths()
|
void SettingsCache::loadPaths()
|
||||||
{
|
{
|
||||||
QString dataPath = getDataPath();
|
QString dataPath = getDataPath();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue