summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/src/renderer/tvgShape.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/thorvg/src/renderer/tvgShape.h')
-rw-r--r--thirdparty/thorvg/src/renderer/tvgShape.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/thirdparty/thorvg/src/renderer/tvgShape.h b/thirdparty/thorvg/src/renderer/tvgShape.h
index 46b2d7d0db..a7f1226690 100644
--- a/thirdparty/thorvg/src/renderer/tvgShape.h
+++ b/thirdparty/thorvg/src/renderer/tvgShape.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 - 2023 the ThorVG project. All rights reserved.
+ * Copyright (c) 2020 - 2024 the ThorVG project. All rights reserved.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -20,16 +20,13 @@
* SOFTWARE.
*/
-#ifndef _TVG_SHAPE_IMPL_H_
-#define _TVG_SHAPE_IMPL_H_
+#ifndef _TVG_SHAPE_H_
+#define _TVG_SHAPE_H_
#include <memory.h>
#include "tvgMath.h"
#include "tvgPaint.h"
-/************************************************************************/
-/* Internal Class Implementation */
-/************************************************************************/
struct Shape::Impl
{
@@ -341,9 +338,9 @@ struct Shape::Impl
Paint* duplicate()
{
- auto ret = Shape::gen();
+ auto ret = Shape::gen().release();
+ auto dup = ret->pImpl;
- auto dup = ret.get()->pImpl;
dup->rs.rule = rs.rule;
//Color
@@ -379,7 +376,7 @@ struct Shape::Impl
dup->flag |= RenderUpdateFlag::Gradient;
}
- return ret.release();
+ return ret;
}
Iterator* iterator()
@@ -388,4 +385,4 @@ struct Shape::Impl
}
};
-#endif //_TVG_SHAPE_IMPL_H_
+#endif //_TVG_SHAPE_H_