summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/svx3ditems.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/engine3d/svx3ditems.cxx')
-rw-r--r--svx/source/engine3d/svx3ditems.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/svx/source/engine3d/svx3ditems.cxx b/svx/source/engine3d/svx3ditems.cxx
index 87b0cbf18020..8b1efe4dfc44 100644
--- a/svx/source/engine3d/svx3ditems.cxx
+++ b/svx/source/engine3d/svx3ditems.cxx
@@ -66,7 +66,7 @@ Svx3DTextureModeItem::Svx3DTextureModeItem(sal_uInt16 nVal)
{}
Svx3DPerspectiveItem::Svx3DPerspectiveItem(ProjectionType nVal)
-: SfxUInt16Item(SDRATTR_3DSCENE_PERSPECTIVE, (sal_uInt16)nVal)
+: SfxUInt16Item(SDRATTR_3DSCENE_PERSPECTIVE, static_cast<sal_uInt16>(nVal))
{}
Svx3DShadeModeItem::Svx3DShadeModeItem(sal_uInt16 nVal)
@@ -151,7 +151,7 @@ SfxPoolItem * Svx3DCloseBackItem::Clone(SfxItemPool *) const
// Svx3DNormalsKindItem: use drawing::NormalsKind
bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
- rVal <<= (drawing::NormalsKind)GetValue();
+ rVal <<= static_cast<drawing::NormalsKind>(GetValue());
return true;
}
@@ -160,7 +160,7 @@ bool Svx3DNormalsKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId
drawing::NormalsKind eVar;
if(!(rVal >>= eVar))
return false;
- SetValue((sal_Int16)eVar);
+ SetValue(static_cast<sal_Int16>(eVar));
return true;
}
@@ -172,7 +172,7 @@ SfxPoolItem* Svx3DNormalsKindItem::Clone(SfxItemPool* /*pPool*/) const
// Svx3DTextureProjectionXItem: use drawing::TextureProjectionMode
bool Svx3DTextureProjectionXItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
- rVal <<= (drawing::TextureProjectionMode)GetValue();
+ rVal <<= static_cast<drawing::TextureProjectionMode>(GetValue());
return true;
}
@@ -181,7 +181,7 @@ bool Svx3DTextureProjectionXItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nM
drawing::TextureProjectionMode eVar;
if(!(rVal >>= eVar))
return false;
- SetValue((sal_Int16)eVar);
+ SetValue(static_cast<sal_Int16>(eVar));
return true;
}
@@ -193,7 +193,7 @@ SfxPoolItem* Svx3DTextureProjectionXItem::Clone(SfxItemPool* /*pPool*/) const
// Svx3DTextureProjectionYItem: use drawing::TextureProjectionMode
bool Svx3DTextureProjectionYItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
- rVal <<= (drawing::TextureProjectionMode)GetValue();
+ rVal <<= static_cast<drawing::TextureProjectionMode>(GetValue());
return true;
}
@@ -202,7 +202,7 @@ bool Svx3DTextureProjectionYItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nM
drawing::TextureProjectionMode eVar;
if(!(rVal >>= eVar))
return false;
- SetValue((sal_Int16)eVar);
+ SetValue(static_cast<sal_Int16>(eVar));
return true;
}
@@ -214,7 +214,7 @@ SfxPoolItem* Svx3DTextureProjectionYItem::Clone(SfxItemPool* /*pPool*/) const
// Svx3DTextureKindItem: use drawing::TextureKind
bool Svx3DTextureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
- rVal <<= (drawing::TextureKind)GetValue();
+ rVal <<= static_cast<drawing::TextureKind>(GetValue());
return true;
}
@@ -223,7 +223,7 @@ bool Svx3DTextureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId
drawing::TextureKind eVar;
if(!(rVal >>= eVar))
return false;
- SetValue((sal_Int16)eVar);
+ SetValue(static_cast<sal_Int16>(eVar));
return true;
}
@@ -235,7 +235,7 @@ SfxPoolItem* Svx3DTextureKindItem::Clone(SfxItemPool* /*pPool*/) const
// Svx3DTextureModeItem: use drawing:TextureMode
bool Svx3DTextureModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
- rVal <<= (drawing::TextureMode)GetValue();
+ rVal <<= static_cast<drawing::TextureMode>(GetValue());
return true;
}
@@ -244,7 +244,7 @@ bool Svx3DTextureModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId
drawing::TextureMode eVar;
if(!(rVal >>= eVar))
return false;
- SetValue((sal_Int16)eVar);
+ SetValue(static_cast<sal_Int16>(eVar));
return true;
}
@@ -256,7 +256,7 @@ SfxPoolItem* Svx3DTextureModeItem::Clone(SfxItemPool* /*pPool*/) const
// Svx3DPerspectiveItem: use drawing::ProjectionMode
bool Svx3DPerspectiveItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
- rVal <<= (drawing::ProjectionMode)GetValue();
+ rVal <<= static_cast<drawing::ProjectionMode>(GetValue());
return true;
}
@@ -265,7 +265,7 @@ bool Svx3DPerspectiveItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId
drawing::ProjectionMode eVar;
if(!(rVal >>= eVar))
return false;
- SetValue((sal_Int16)eVar);
+ SetValue(static_cast<sal_Int16>(eVar));
return true;
}
@@ -277,7 +277,7 @@ SfxPoolItem* Svx3DPerspectiveItem::Clone(SfxItemPool* /*pPool*/) const
// Svx3DShadeModeItem: use drawing::ShadeMode
bool Svx3DShadeModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
- rVal <<= (drawing::ShadeMode)GetValue();
+ rVal <<= static_cast<drawing::ShadeMode>(GetValue());
return true;
}
@@ -286,7 +286,7 @@ bool Svx3DShadeModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/
drawing::ShadeMode eVar;
if(!(rVal >>= eVar))
return false;
- SetValue((sal_Int16)eVar);
+ SetValue(static_cast<sal_Int16>(eVar));
return true;
}