summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-09-01 10:42:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-09-02 08:09:19 +0000
commitf352ee156c1f184b3aded8dc0ea3eeb68bfbca10 (patch)
tree986a61461f9087a7cf842da091d6235b350abebb /vcl/unx
parent175c49baef5d8dd3f7a28fec5a3dce956303dc42 (diff)
boost::intrusive_ptr->tools::SvRef
Change-Id: I4c913dc62efe3f3747e78670f4efb0216d95c4ad Reviewed-on: https://gerrit.libreoffice.org/28585 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/fontmanager/fontmanager.cxx2
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx6
-rw-r--r--vcl/unx/generic/gdi/font.cxx4
-rw-r--r--vcl/unx/generic/glyphs/freetype_glyphcache.cxx12
-rw-r--r--vcl/unx/generic/print/genpspgraphics.cxx6
5 files changed, 15 insertions, 15 deletions
diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx
index a88f179fc34b..488e675e9b82 100644
--- a/vcl/unx/generic/fontmanager/fontmanager.cxx
+++ b/vcl/unx/generic/fontmanager/fontmanager.cxx
@@ -2109,7 +2109,7 @@ void PrintFontManager::getGlyphWidths( fontID nFont,
CmapResult aCmapResult;
if( ParseCMAP( pCmapData, nCmapSize, aCmapResult ) )
{
- FontCharMapPtr xFontCharMap( new FontCharMap(aCmapResult) );
+ FontCharMapRef xFontCharMap( new FontCharMap(aCmapResult) );
for( sal_uInt32 cOld = 0;;)
{
// get next unicode covered by font
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index d86539354fb4..f697a0c84528 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -364,12 +364,12 @@ void CairoTextRender::DrawServerFontLayout( const ServerFontLayout& rLayout )
releaseCairoContext(cr);
}
-const FontCharMapPtr CairoTextRender::GetFontCharMap() const
+const FontCharMapRef CairoTextRender::GetFontCharMap() const
{
if( !mpServerFont[0] )
return nullptr;
- const FontCharMapPtr xFCMap = mpServerFont[0]->GetFontCharMap();
+ const FontCharMapRef xFCMap = mpServerFont[0]->GetFontCharMap();
return xFCMap;
}
@@ -465,7 +465,7 @@ FontConfigFontOptions* GetFCFontOptions( const FontAttributes& rFontAttributes,
}
void
-CairoTextRender::GetFontMetric( ImplFontMetricDataPtr& rxFontMetric, int nFallbackLevel )
+CairoTextRender::GetFontMetric( ImplFontMetricDataRef& rxFontMetric, int nFallbackLevel )
{
if( nFallbackLevel >= MAX_FALLBACK )
return;
diff --git a/vcl/unx/generic/gdi/font.cxx b/vcl/unx/generic/gdi/font.cxx
index 3cc651064d06..36c7ecba8456 100644
--- a/vcl/unx/generic/gdi/font.cxx
+++ b/vcl/unx/generic/gdi/font.cxx
@@ -57,7 +57,7 @@ void X11SalGraphics::DrawServerFontLayout( const ServerFontLayout& rLayout )
mxTextRenderImpl->DrawServerFontLayout(rLayout);
}
-const FontCharMapPtr X11SalGraphics::GetFontCharMap() const
+const FontCharMapRef X11SalGraphics::GetFontCharMap() const
{
return mxTextRenderImpl->GetFontCharMap();
}
@@ -100,7 +100,7 @@ void X11SalGraphics::GetDevFontList( PhysicalFontCollection* pFontCollection )
}
void
-X11SalGraphics::GetFontMetric( ImplFontMetricDataPtr &rxFontMetric, int nFallbackLevel )
+X11SalGraphics::GetFontMetric( ImplFontMetricDataRef &rxFontMetric, int nFallbackLevel )
{
mxTextRenderImpl->GetFontMetric(rxFontMetric, nFallbackLevel);
}
diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
index 79744b2353df..1ad75c4c3fbb 100644
--- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
+++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
@@ -614,7 +614,7 @@ ServerFont::~ServerFont()
}
-void ServerFont::GetFontMetric( ImplFontMetricDataPtr& rxTo, long& rFactor ) const
+void ServerFont::GetFontMetric( ImplFontMetricDataRef& rxTo, long& rFactor ) const
{
rxTo->FontAttributes::operator =(mpFontInfo->GetFontAttributes());
@@ -971,13 +971,13 @@ bool ServerFont::GetAntialiasAdvice() const
// determine unicode ranges in font
-const FontCharMapPtr ServerFont::GetFontCharMap() const
+const FontCharMapRef ServerFont::GetFontCharMap() const
{
- const FontCharMapPtr xFCMap = mpFontInfo->GetFontCharMap();
+ const FontCharMapRef xFCMap = mpFontInfo->GetFontCharMap();
return xFCMap;
}
-const FontCharMapPtr& FreetypeFontInfo::GetFontCharMap()
+const FontCharMapRef& FreetypeFontInfo::GetFontCharMap()
{
// check if the charmap is already cached
if( mxFontCharMap )
@@ -988,12 +988,12 @@ const FontCharMapPtr& FreetypeFontInfo::GetFontCharMap()
bool bOK = GetFontCodeRanges( aCmapResult );
if( bOK )
{
- FontCharMapPtr xFontCharMap( new FontCharMap ( aCmapResult ) );
+ FontCharMapRef xFontCharMap( new FontCharMap ( aCmapResult ) );
mxFontCharMap = xFontCharMap;
}
else
{
- FontCharMapPtr xFontCharMap( new FontCharMap() );
+ FontCharMapRef xFontCharMap( new FontCharMap() );
mxFontCharMap = xFontCharMap;
}
// mxFontCharMap on either branch now has a refcount of 1
diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx
index 51dfdc863c79..4df3ab349c50 100644
--- a/vcl/unx/generic/print/genpspgraphics.cxx
+++ b/vcl/unx/generic/print/genpspgraphics.cxx
@@ -767,12 +767,12 @@ void GenPspGraphics::DrawServerFontLayout( const ServerFontLayout& rLayout )
DrawPrinterLayout( rLayout, *m_pPrinterGfx, true );
}
-const FontCharMapPtr GenPspGraphics::GetFontCharMap() const
+const FontCharMapRef GenPspGraphics::GetFontCharMap() const
{
if( !m_pServerFont[0] )
return nullptr;
- const FontCharMapPtr xFCMap = m_pServerFont[0]->GetFontCharMap();
+ const FontCharMapRef xFCMap = m_pServerFont[0]->GetFontCharMap();
return xFCMap;
}
@@ -915,7 +915,7 @@ void GenPspGraphics::ClearDevFontCache()
GlyphCache::GetInstance().ClearFontCache();
}
-void GenPspGraphics::GetFontMetric( ImplFontMetricDataPtr& rxFontMetric, int )
+void GenPspGraphics::GetFontMetric( ImplFontMetricDataRef& rxFontMetric, int )
{
const psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
psp::PrintFontInfo aInfo;