summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-04-08 10:48:08 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-04-08 10:48:08 -0430
commit1bdc495cccaa7bc3be4718515082c70e42cdadc4 (patch)
tree8e52ffc408a1797c9c7647d050a6183645aed4ef /chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
parent561a2d63eae07ced7f7f1822e8e5a0de0b989f76 (diff)
Cleanup of C2U macro in chart2.
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
index c4e48a473a8d..8e762199ff47 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
@@ -43,7 +43,7 @@ namespace wrapper
//.............................................................................
WrappedNumberFormatProperty::WrappedNumberFormatProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
- : WrappedDirectStateProperty( C2U("NumberFormat"), C2U("NumberFormat") )
+ : WrappedDirectStateProperty( "NumberFormat", "NumberFormat" )
, m_spChart2ModelContact(spChart2ModelContact)
{
m_aOuterValue = getPropertyDefault( 0 );
@@ -63,12 +63,12 @@ void WrappedNumberFormatProperty::setPropertyValue( const Any& rOuterValue, cons
{
sal_Int32 nFormat = 0;
if( ! (rOuterValue >>= nFormat) )
- throw lang::IllegalArgumentException( C2U("Property 'NumberFormat' requires value of type sal_Int32"), 0, 0 );
+ throw lang::IllegalArgumentException( "Property 'NumberFormat' requires value of type sal_Int32", 0, 0 );
m_aOuterValue = rOuterValue;
if(xInnerPropertySet.is())
{
- bool bUseSourceFormat = !xInnerPropertySet->getPropertyValue( C2U("NumberFormat" )).hasValue();
+ bool bUseSourceFormat = !xInnerPropertySet->getPropertyValue( "NumberFormat" ).hasValue();
if( bUseSourceFormat )
{
uno::Reference< chart2::XChartDocument > xChartDoc( m_spChart2ModelContact->getChart2Document() );
@@ -114,7 +114,7 @@ Any WrappedNumberFormatProperty::getPropertyDefault( const Reference< beans::XPr
//-----------------------------------------------------------------------------
WrappedLinkNumberFormatProperty::WrappedLinkNumberFormatProperty( WrappedNumberFormatProperty* pWrappedNumberFormatProperty )
- : WrappedProperty( C2U("LinkNumberFormatToSource"), C2U("") )
+ : WrappedProperty( "LinkNumberFormatToSource", rtl::OUString() )
, m_pWrappedNumberFormatProperty( pWrappedNumberFormatProperty )
{
if( m_pWrappedNumberFormatProperty )
@@ -164,7 +164,7 @@ void WrappedLinkNumberFormatProperty::setPropertyValue( const Any& rOuterValue,
aValue <<= sal_Int32( 0 );
}
- xInnerPropertySet->setPropertyValue( C2U("NumberFormat"), aValue );
+ xInnerPropertySet->setPropertyValue( "NumberFormat", aValue );
}
}
@@ -176,7 +176,7 @@ Any WrappedLinkNumberFormatProperty::getPropertyValue( const Reference< beans::X
OSL_FAIL("missing xInnerPropertySet in WrappedNumberFormatProperty::getPropertyValue");
return getPropertyDefault(0);
}
- bool bLink = ! xInnerPropertySet->getPropertyValue( C2U("NumberFormat" )).hasValue();
+ bool bLink = ! xInnerPropertySet->getPropertyValue( "NumberFormat" ).hasValue();
return uno::makeAny( bLink );
}