summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/shape3dproperties.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-24 11:22:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-28 10:17:47 +0000
commit198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac (patch)
tree041d55126e9770b81f68fadfaaa69e82313786b3 /oox/source/drawingml/shape3dproperties.cxx
parentd3981b3e8c021ee03a2ca7103a73e56cca18df81 (diff)
new loplugin unoany
Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89 Reviewed-on: https://gerrit.libreoffice.org/34714 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/drawingml/shape3dproperties.cxx')
-rw-r--r--oox/source/drawingml/shape3dproperties.cxx52
1 files changed, 26 insertions, 26 deletions
diff --git a/oox/source/drawingml/shape3dproperties.cxx b/oox/source/drawingml/shape3dproperties.cxx
index cf1930afdafe..5a4b3213d2f7 100644
--- a/oox/source/drawingml/shape3dproperties.cxx
+++ b/oox/source/drawingml/shape3dproperties.cxx
@@ -218,37 +218,37 @@ css::uno::Sequence< css::beans::PropertyValue > Shape3DProperties::getCameraAttr
if( mfFieldOfVision.has() )
{
aSeq[nSize].Name = "fov";
- aSeq[nSize].Value = css::uno::Any( mfFieldOfVision.use() );
+ aSeq[nSize].Value <<= mfFieldOfVision.use();
nSize++;
}
if( mfZoom.has() )
{
aSeq[nSize].Name = "zoom";
- aSeq[nSize].Value = css::uno::Any( mfZoom.use() );
+ aSeq[nSize].Value <<= mfZoom.use();
nSize++;
}
if( mnPreset.has() )
{
aSeq[nSize].Name = "prst";
- aSeq[nSize].Value = css::uno::Any( getCameraPrstName( mnPreset.use() ) );
+ aSeq[nSize].Value <<= getCameraPrstName( mnPreset.use() );
nSize++;
}
if( maCameraRotation.mnLatitude.has() )
{
aSeq[nSize].Name = "rotLat";
- aSeq[nSize].Value = css::uno::Any( maCameraRotation.mnLatitude.use() );
+ aSeq[nSize].Value <<= maCameraRotation.mnLatitude.use();
nSize++;
}
if( maCameraRotation.mnLongitude.has() )
{
aSeq[nSize].Name = "rotLon";
- aSeq[nSize].Value = css::uno::Any( maCameraRotation.mnLongitude.use() );
+ aSeq[nSize].Value <<= maCameraRotation.mnLongitude.use();
nSize++;
}
if( maCameraRotation.mnRevolution.has() )
{
aSeq[nSize].Name = "rotRev";
- aSeq[nSize].Value = css::uno::Any( maCameraRotation.mnRevolution.use() );
+ aSeq[nSize].Value <<= maCameraRotation.mnRevolution.use();
nSize++;
}
aSeq.realloc( nSize );
@@ -262,31 +262,31 @@ css::uno::Sequence< css::beans::PropertyValue > Shape3DProperties::getLightRigAt
if( mnLightRigDirection.has() )
{
aSeq[nSize].Name = "dir";
- aSeq[nSize].Value = css::uno::Any( getLightRigDirName( mnLightRigDirection.use() ) );
+ aSeq[nSize].Value <<= getLightRigDirName( mnLightRigDirection.use() );
nSize++;
}
if( mnLightRigType.has() )
{
aSeq[nSize].Name = "rig";
- aSeq[nSize].Value = css::uno::Any( getLightRigName( mnLightRigType.use() ) );
+ aSeq[nSize].Value <<= getLightRigName( mnLightRigType.use() );
nSize++;
}
if( maLightRigRotation.mnLatitude.has() )
{
aSeq[nSize].Name = "rotLat";
- aSeq[nSize].Value = css::uno::Any( maLightRigRotation.mnLatitude.use() );
+ aSeq[nSize].Value <<= maLightRigRotation.mnLatitude.use();
nSize++;
}
if( maLightRigRotation.mnLongitude.has() )
{
aSeq[nSize].Name = "rotLon";
- aSeq[nSize].Value = css::uno::Any( maLightRigRotation.mnLongitude.use() );
+ aSeq[nSize].Value <<= maLightRigRotation.mnLongitude.use();
nSize++;
}
if( maLightRigRotation.mnRevolution.has() )
{
aSeq[nSize].Name = "rotRev";
- aSeq[nSize].Value = css::uno::Any( maLightRigRotation.mnRevolution.use() );
+ aSeq[nSize].Value <<= maLightRigRotation.mnRevolution.use();
nSize++;
}
aSeq.realloc( nSize );
@@ -300,19 +300,19 @@ css::uno::Sequence< css::beans::PropertyValue > Shape3DProperties::getBevelAttri
if( rProps.mnPreset.has() )
{
aSeq[nSize].Name = "prst";
- aSeq[nSize].Value = css::uno::Any( getBevelPresetTypeString( rProps.mnPreset.use() ) );
+ aSeq[nSize].Value <<= getBevelPresetTypeString( rProps.mnPreset.use() );
nSize++;
}
if( rProps.mnWidth.has() )
{
aSeq[nSize].Name = "w";
- aSeq[nSize].Value = css::uno::Any( rProps.mnWidth.use() );
+ aSeq[nSize].Value <<= rProps.mnWidth.use();
nSize++;
}
if( rProps.mnHeight.has() )
{
aSeq[nSize].Name = "h";
- aSeq[nSize].Value = css::uno::Any( rProps.mnHeight.use() );
+ aSeq[nSize].Value <<= rProps.mnHeight.use();
nSize++;
}
aSeq.realloc( nSize );
@@ -328,17 +328,17 @@ css::uno::Sequence< css::beans::PropertyValue > Shape3DProperties::getColorAttri
{
// RGB color and transparency value
aSeq[0].Name = "rgbClr";
- aSeq[0].Value = css::uno::Any( rColor.getColor( rGraphicHelper, rPhClr ) );
+ aSeq[0].Value <<= rColor.getColor( rGraphicHelper, rPhClr );
aSeq[1].Name = "rgbClrTransparency";
- aSeq[1].Value = css::uno::Any( rColor.getTransparency() );
+ aSeq[1].Value <<= rColor.getTransparency();
}
else
{
// scheme color with name and transformations
aSeq[0].Name = "schemeClr";
- aSeq[0].Value = css::uno::Any( sColorScheme );
+ aSeq[0].Value <<= sColorScheme;
aSeq[1].Name = "schemeClrTransformations";
- aSeq[1].Value = css::uno::Any( rColor.getTransformations() );
+ aSeq[1].Value <<= rColor.getTransformations();
}
return aSeq;
}
@@ -351,49 +351,49 @@ css::uno::Sequence< css::beans::PropertyValue > Shape3DProperties::getShape3DAtt
if( mnExtrusionH.has() )
{
aSeq[nSize].Name = "extrusionH";
- aSeq[nSize].Value = css::uno::Any( mnExtrusionH.use() );
+ aSeq[nSize].Value <<= mnExtrusionH.use();
nSize++;
}
if( mnContourW.has() )
{
aSeq[nSize].Name = "contourW";
- aSeq[nSize].Value = css::uno::Any( mnContourW.use() );
+ aSeq[nSize].Value <<= mnContourW.use();
nSize++;
}
if( mnShapeZ.has() )
{
aSeq[nSize].Name = "z";
- aSeq[nSize].Value = css::uno::Any( mnShapeZ.use() );
+ aSeq[nSize].Value <<= mnShapeZ.use();
nSize++;
}
if( mnMaterial.has() )
{
aSeq[nSize].Name = "prstMaterial";
- aSeq[nSize].Value = css::uno::Any( getPresetMaterialTypeString( mnMaterial.use() ) );
+ aSeq[nSize].Value <<= getPresetMaterialTypeString( mnMaterial.use() );
nSize++;
}
if( maTopBevelProperties.has() )
{
aSeq[nSize].Name = "bevelT";
- aSeq[nSize].Value = css::uno::Any( getBevelAttributes( maTopBevelProperties.use() ) );
+ aSeq[nSize].Value <<= getBevelAttributes( maTopBevelProperties.use() );
nSize++;
}
if( maBottomBevelProperties.has() )
{
aSeq[nSize].Name = "bevelB";
- aSeq[nSize].Value = css::uno::Any( getBevelAttributes( maBottomBevelProperties.use() ) );
+ aSeq[nSize].Value <<= getBevelAttributes( maBottomBevelProperties.use() );
nSize++;
}
if( maExtrusionColor.isUsed() )
{
aSeq[nSize].Name = "extrusionClr";
- aSeq[nSize].Value = css::uno::Any( getColorAttributes( maExtrusionColor, rGraphicHelper, rPhClr ) );
+ aSeq[nSize].Value <<= getColorAttributes( maExtrusionColor, rGraphicHelper, rPhClr );
nSize++;
}
if( maContourColor.isUsed() )
{
aSeq[nSize].Name = "contourClr";
- aSeq[nSize].Value = css::uno::Any( getColorAttributes( maContourColor, rGraphicHelper, rPhClr ) );
+ aSeq[nSize].Value <<= getColorAttributes( maContourColor, rGraphicHelper, rPhClr );
nSize++;
}
aSeq.realloc( nSize );