Skip to content
Commit 13fc0e56 authored by Julian Helfferich's avatar Julian Helfferich 💬
Browse files

Do not create KBlocksGraphics and KBlocksSound objects in KBlocksScene

Complex objects being created in constructors is always a big headache
for unit tests, particularly in C++, because constructor calls can't be
avoided and neither can the work be delegated to a virtual member
function.

Instead of creating the objects, KBlocksScene now takes them as input
parameters.

This reduces the number of warnings in the UnitTest-KBlocksWin test
suite to one.
parent 140e1188
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment