summaryrefslogtreecommitdiff
path: root/include/vcl/hatch.hxx
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-04-26 00:48:57 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-04-27 18:48:53 +0000
commit80590c1162bd7b1e3230785168dc87e0ce069f8a (patch)
tree0a99282b6481618d2a8ac9cd921bc8b56b91a330 /include/vcl/hatch.hxx
parent579c2de3a88483eff0664d3a303b19cbd386db47 (diff)
tdf#62525 vcl: use cow_wrapper for Hatch
Change-Id: I520b2a6a8c309b3702208633ed86225f61b7368c Reviewed-on: https://gerrit.libreoffice.org/24376 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include/vcl/hatch.hxx')
-rw-r--r--include/vcl/hatch.hxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/include/vcl/hatch.hxx b/include/vcl/hatch.hxx
index 0518b290bba3..41b9b9570a61 100644
--- a/include/vcl/hatch.hxx
+++ b/include/vcl/hatch.hxx
@@ -24,33 +24,26 @@
#include <vcl/dllapi.h>
#include <vcl/vclenum.hxx>
+#include <o3tl/cow_wrapper.hxx>
class SvStream;
struct ImplHatch
{
- sal_uInt32 mnRefCount;
Color maColor;
HatchStyle meStyle;
long mnDistance;
sal_uInt16 mnAngle;
- ImplHatch();
- ImplHatch( const ImplHatch& rImplHatch );
+ ImplHatch();
+ ImplHatch( const ImplHatch& rImplHatch );
- friend SvStream& ReadImplHatch( SvStream& rIStm, ImplHatch& rImplHatch );
- friend SvStream& WriteImplHatch( SvStream& rOStm, const ImplHatch& rImplHatch );
+ bool operator==( const ImplHatch& rImplHatch ) const;
};
-
class VCL_DLLPUBLIC Hatch
{
-private:
-
- ImplHatch* mpImplHatch;
- SAL_DLLPRIVATE void ImplMakeUnique();
-
public:
Hatch();
@@ -75,6 +68,9 @@ public:
friend VCL_DLLPUBLIC SvStream& ReadHatch( SvStream& rIStm, Hatch& rHatch );
friend VCL_DLLPUBLIC SvStream& WriteHatch( SvStream& rOStm, const Hatch& rHatch );
+
+private:
+ o3tl::cow_wrapper< ImplHatch > mpImplHatch;
};
#endif // INCLUDED_VCL_HATCH_HXX