Commit 30a6211e authored by Thomas Zander's avatar Thomas Zander

Tweaking who owns the app data

svn path=/trunk/koffice/; revision=689487
parent 325cb153
......@@ -404,8 +404,7 @@ void KoShape::notifyChanged()
}
void KoShape::setUserData(KoShapeUserData *userData) {
if(d->userData)
delete d->userData;
delete d->userData;
d->userData = userData;
}
......@@ -414,7 +413,7 @@ KoShapeUserData *KoShape::userData() const {
}
void KoShape::setApplicationData(KoShapeApplicationData *appData) {
delete d->appData;
// appdata is deleted by the application.
d->appData = appData;
}
......
Markdown is supported
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