summaryrefslogtreecommitdiff
path: root/drawinglayer/inc
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-04-02 14:54:29 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-04-02 14:56:44 +0200
commitc42bdb023725016af22d7cee8cf81c8975234d94 (patch)
treee2140f8f261108ffd27b2994ff585b951c8683ec /drawinglayer/inc
parent4e188ae252322485c54b4c3a6c081bde2f966a9f (diff)
fdo#62525: use cow_wrapper for MaterialAttribute3D
Change-Id: I7ee65afe8065525e6af198a4d1b75e1035644983
Diffstat (limited to 'drawinglayer/inc')
-rw-r--r--drawinglayer/inc/drawinglayer/attribute/materialattribute3d.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/drawinglayer/inc/drawinglayer/attribute/materialattribute3d.hxx b/drawinglayer/inc/drawinglayer/attribute/materialattribute3d.hxx
index cb64b0f9e330..9c4d34dce155 100644
--- a/drawinglayer/inc/drawinglayer/attribute/materialattribute3d.hxx
+++ b/drawinglayer/inc/drawinglayer/attribute/materialattribute3d.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_DRAWINGLAYER_ATTRIBUTE_MATERIALATTRIBUTE3D_HXX
#include <drawinglayer/drawinglayerdllapi.h>
+#include <o3tl/cow_wrapper.hxx>
//////////////////////////////////////////////////////////////////////////////
// predefines
@@ -41,8 +42,11 @@ namespace drawinglayer
{
class DRAWINGLAYER_DLLPUBLIC MaterialAttribute3D
{
+ public:
+ typedef o3tl::cow_wrapper< ImpMaterialAttribute3D > ImplType;
+
private:
- ImpMaterialAttribute3D* mpMaterialAttribute3D;
+ ImplType mpMaterialAttribute3D;
public:
// constructors/destructor