tvg format: code refactoring #4
authorHermet Park <chuneon.park@samsung.com>
Tue, 20 Jul 2021 04:33:44 +0000 (13:33 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 22 Jul 2021 08:24:22 +0000 (17:24 +0900)
Remove an unnecessary internal reference.

src/lib/tvgSaver.cpp
src/lib/tvgSaverImpl.h

index 52b0035..5f50807 100644 (file)
@@ -30,7 +30,7 @@
 /* External Class Implementation                                        */
 /************************************************************************/
 
-Saver::Saver() : pImpl(new Impl(this))
+Saver::Saver() : pImpl(new Impl())
 {
 }
 
index dee8bf0..8a32f68 100644 (file)
 
 struct Saver::Impl
 {
-    Saver* saver;
     Paint* paint = nullptr;        //TODO: replace with Array
     Array<char> buffer;
 
-    Impl(Saver* s) : saver(s)
-    {
-    }
-
     ~Impl()
     {
         sync();