summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-12 12:21:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-13 19:38:08 +0000
commit47d3e82e4f2c0c06231c952a0cc2456b712da0cc (patch)
tree0f5d4aa62edb85d7c13bb6430aadfa9635c9e3ef /basebmp
parentab5f16eb37d8fa2b7924f1e19f9fe8f373714adc (diff)
boost->std
Change-Id: I9b4f884c6313a53fea543ea6f93175205351ad14 Reviewed-on: https://gerrit.libreoffice.org/18517 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 'basebmp')
-rw-r--r--basebmp/source/bitmapdevice.cxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index 41a32feed7e4..961f07b05463 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -375,9 +375,9 @@ namespace
damaged( basegfx::B2IBox( rDamagePoint, aEnd ) );
}
- static boost::shared_ptr<BitmapRenderer> getCompatibleBitmap( const BitmapDeviceSharedPtr& bmp )
+ static std::shared_ptr<BitmapRenderer> getCompatibleBitmap( const BitmapDeviceSharedPtr& bmp )
{
- return boost::dynamic_pointer_cast< BitmapRenderer >( bmp );
+ return std::dynamic_pointer_cast< BitmapRenderer >( bmp );
}
virtual bool isCompatibleBitmap( const BitmapDeviceSharedPtr& bmp ) const SAL_OVERRIDE
@@ -387,9 +387,9 @@ namespace
return getCompatibleBitmap(bmp).get() != NULL;
}
- boost::shared_ptr<mask_bitmap_type> getCompatibleClipMask( const BitmapDeviceSharedPtr& bmp ) const
+ std::shared_ptr<mask_bitmap_type> getCompatibleClipMask( const BitmapDeviceSharedPtr& bmp ) const
{
- boost::shared_ptr<mask_bitmap_type> pMask( boost::dynamic_pointer_cast<mask_bitmap_type>( bmp ));
+ std::shared_ptr<mask_bitmap_type> pMask( std::dynamic_pointer_cast<mask_bitmap_type>( bmp ));
if( !pMask )
return pMask;
@@ -404,12 +404,12 @@ namespace
{
// TODO(P1): dynamic_cast usually called twice for
// compatible formats
- return boost::dynamic_pointer_cast<mask_bitmap_type>( bmp ).get() != NULL;
+ return std::dynamic_pointer_cast<mask_bitmap_type>( bmp ).get() != NULL;
}
- static boost::shared_ptr<alphamask_bitmap_type> getCompatibleAlphaMask( const BitmapDeviceSharedPtr& bmp )
+ static std::shared_ptr<alphamask_bitmap_type> getCompatibleAlphaMask( const BitmapDeviceSharedPtr& bmp )
{
- return boost::dynamic_pointer_cast<alphamask_bitmap_type>( bmp );
+ return std::dynamic_pointer_cast<alphamask_bitmap_type>( bmp );
}
virtual void clear_i( Color fillColor,
@@ -445,7 +445,7 @@ namespace
DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) SAL_OVERRIDE
{
- boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rClip) );
+ std::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rClip) );
OSL_ASSERT( pMask );
const vigra::Diff2D offset(rPt.getX(),
@@ -562,7 +562,7 @@ namespace
composite_iterator_type getMaskedIter( const BitmapDeviceSharedPtr& rClip ) const
{
- boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rClip) );
+ std::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rClip) );
OSL_ASSERT( pMask );
return composite_iterator_type( maBegin,
@@ -713,7 +713,7 @@ namespace
const Iterator& begin,
const RawAcc& acc)
{
- boost::shared_ptr<BitmapRenderer> pSrcBmp( getCompatibleBitmap(rSrcBitmap) );
+ std::shared_ptr<BitmapRenderer> pSrcBmp( getCompatibleBitmap(rSrcBitmap) );
OSL_ASSERT( pSrcBmp );
scaleImage(
@@ -867,8 +867,8 @@ namespace
const basegfx::B2IBox& rSrcRect,
const basegfx::B2IPoint& rDstPoint ) SAL_OVERRIDE
{
- boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rAlphaMask) );
- boost::shared_ptr<alphamask_bitmap_type> pAlpha( getCompatibleAlphaMask(rAlphaMask) );
+ std::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rAlphaMask) );
+ std::shared_ptr<alphamask_bitmap_type> pAlpha( getCompatibleAlphaMask(rAlphaMask) );
if( pAlpha )
{
@@ -917,8 +917,8 @@ namespace
const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip ) SAL_OVERRIDE
{
- boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rAlphaMask) );
- boost::shared_ptr<alphamask_bitmap_type> pAlpha( getCompatibleAlphaMask(rAlphaMask) );
+ std::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rAlphaMask) );
+ std::shared_ptr<alphamask_bitmap_type> pAlpha( getCompatibleAlphaMask(rAlphaMask) );
if( pAlpha )
{
@@ -935,7 +935,7 @@ namespace
}
else if( pMask )
{
- boost::shared_ptr<mask_bitmap_type> pClipMask( getCompatibleClipMask(rClip) );
+ std::shared_ptr<mask_bitmap_type> pClipMask( getCompatibleClipMask(rClip) );
OSL_ASSERT( pClipMask );
// setup a ((iter,mask),clipMask) composite composite
@@ -982,8 +982,8 @@ namespace
const Iterator& begin,
const Acc& acc)
{
- boost::shared_ptr<BitmapRenderer> pSrcBmp( getCompatibleBitmap(rSrcBitmap) );
- boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rMask) );
+ std::shared_ptr<BitmapRenderer> pSrcBmp( getCompatibleBitmap(rSrcBitmap) );
+ std::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rMask) );
OSL_ASSERT( pMask && pSrcBmp );
scaleImage(
@@ -1829,7 +1829,7 @@ PaletteMemorySharedVector createStandardPalette(
if( pPal || nNumEntries <= 0 )
return pPal;
- boost::shared_ptr< std::vector<Color> > pLocalPal(
+ std::shared_ptr< std::vector<Color> > pLocalPal(
new std::vector<Color>(nNumEntries) );
const sal_Int32 nIncrement( 0x00FFFFFF/nNumEntries );