Changeset View
Changeset View
Standalone View
Standalone View
kstyle/oxygenshadowhelper.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 46 | ShadowHelper::ShadowHelper( QObject* parent, StyleHelper& helper ): | |||
---|---|---|---|---|---|
50 | _size( 0 ) | 50 | _size( 0 ) | ||
51 | { | 51 | { | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | //_______________________________________________________ | 54 | //_______________________________________________________ | ||
55 | ShadowHelper::~ShadowHelper( void ) | 55 | ShadowHelper::~ShadowHelper( void ) | ||
56 | { | 56 | { | ||
57 | 57 | | |||
58 | qDeleteAll( _shadows ); | 58 | // qDeleteAll doesn't make containers detach so make a copy explicitly | ||
59 | const QMap<QWidget*, KWindowShadow*> shadows = _shadows; | ||||
60 | qDeleteAll( shadows ); | ||||
61 | | ||||
59 | delete _shadowCache; | 62 | delete _shadowCache; | ||
60 | 63 | | |||
61 | } | 64 | } | ||
62 | 65 | | |||
63 | //______________________________________________ | 66 | //______________________________________________ | ||
64 | void ShadowHelper::reset( void ) | 67 | void ShadowHelper::reset( void ) | ||
65 | { | 68 | { | ||
66 | _platformTiles.clear(); | 69 | _platformTiles.clear(); | ||
▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines |