mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -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
ebf29155c3
commit
8b3f71c461
1 changed files with 4 additions and 0 deletions
|
|
@ -144,6 +144,10 @@ SettingsCache::SettingsCache()
|
|||
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()
|
||||
{
|
||||
QString dataPath = getDataPath();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue