summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qabstractanimation.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-15 11:02:50 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-22 11:22:40 +0200
commitcf7d990a486b406d558e3291247d4323a9f48c73 (patch)
treee6a3e55184ff6664aad2e09b72f9ae31755b556f /src/corelib/animation/qabstractanimation.cpp
parent0e2c013a4523915a0af37fe1f338a4f66b07f91d (diff)
Fix reference to a dead temporary
NoDefaultConstructorRef1 was taking a reference of the input, which meant in the first test it would get a reference to the temporary created by the 1 literal. A temporary that would be out of scope by the time we check its value. Instead add a test with unique_ptr to test we can pass movable temporaries. Change-Id: I6b02377dfe30c82b6e71bfb3353a81ad81558ed3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/animation/qabstractanimation.cpp')
0 files changed, 0 insertions, 0 deletions