[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/krita/plugins/paintops/libbrush
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2010-01-31 22:28:28
Message-ID: 1264976908.153067.30779.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1083261 by berger:

use a QList of smart pointers, one it avoid using private API and two it
allows the brushes to be deleted with their server


 M  +2 -1      kis_brush_server.cpp  


--- trunk/koffice/krita/plugins/paintops/libbrush/kis_brush_server.cpp #1083260:1083261
@@ -60,10 +60,11 @@
         
         // Hack: This prevents the deletion of brushes in the resource server
         // Brushes outside the server use shared pointer, but not inside the server
-        brush->ref.ref();
+        brushes.push_back(brush);
 
         return brush;
     }
+    QList<KisBrushSP> brushes;
 };
 
 KisBrushServer::KisBrushServer()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic