summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-14 11:46:24 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-14 11:46:28 +1100
commit43488d9de74d785445f5f7cbb80163bfb2e36c1b (patch)
tree4c511b24643c443dc0d33684936651dc6da5dbe2 /include
parent2496c497b6ffe9c69370ccc12bb103099c877165 (diff)
vcl: FontMetric now has ImplFontMetricPtr objects
ImplFontMetricPtr is a typedef to an intrusive_ptr<ImplFontMetric>. I have ditched the manual reference counting to use Boost's smart pointer. Change-Id: I5e93f45d19d43c8b7253f4342c1b9ef4a4301527
Diffstat (limited to 'include')
-rw-r--r--include/vcl/metric.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/metric.hxx b/include/vcl/metric.hxx
index 0cd14b1c20f8..e37b91ffac75 100644
--- a/include/vcl/metric.hxx
+++ b/include/vcl/metric.hxx
@@ -33,6 +33,7 @@ class CmapResult;
typedef sal_uInt32 sal_UCS4;
typedef boost::intrusive_ptr< ImplFontCharMap > ImplFontCharMapPtr;
typedef boost::intrusive_ptr< FontCharMap > FontCharMapPtr;
+typedef boost::intrusive_ptr< ImplFontMetric > ImplFontMetricPtr;
class VCL_DLLPUBLIC FontMetric : public vcl::Font
{
@@ -72,7 +73,7 @@ public:
bool operator!=( const FontMetric& rMetric ) const
{ return !operator==( rMetric ); }
protected:
- ImplFontMetric* mpImplMetric; // Implementation
+ ImplFontMetricPtr mpImplMetric; // Implementation
};
template< typename charT, typename traits >