Kaydet (Commit) dedf0a28 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:defaultparams

Change-Id: I03541b984db147f8bd3ed35f83e297cf7eecd7f0
üst fc0b9a34
...@@ -259,7 +259,7 @@ DataSourceTabPage::DataSourceTabPage( ...@@ -259,7 +259,7 @@ DataSourceTabPage::DataSourceTabPage(
m_pBTN_DOWN->SetText( OUString( cBlackDownPointingTriangle )); m_pBTN_DOWN->SetText( OUString( cBlackDownPointingTriangle ));
// init controls // init controls
m_pLB_ROLE->SetTabs( lcl_pRoleListBoxTabs, MAP_APPFONT ); m_pLB_ROLE->SetTabs( lcl_pRoleListBoxTabs );
m_pLB_ROLE->Show(); m_pLB_ROLE->Show();
updateControlsFromDialogModel(); updateControlsFromDialogModel();
...@@ -327,7 +327,7 @@ bool DataSourceTabPage::commitPage( ::svt::WizardTypes::CommitPageReason /*eReas ...@@ -327,7 +327,7 @@ bool DataSourceTabPage::commitPage( ::svt::WizardTypes::CommitPageReason /*eReas
//ranges may have been edited in the meanwhile (dirty is true in that case here) //ranges may have been edited in the meanwhile (dirty is true in that case here)
if( isValid() ) if( isValid() )
{ {
updateModelFromControl( 0 /*update all*/ ); updateModelFromControl();
return true; //return false if this page should not be left return true; //return false if this page should not be left
} }
else else
......
...@@ -107,7 +107,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS OUStringToDouble : public ::std::unary_function< ...@@ -107,7 +107,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS OUStringToDouble : public ::std::unary_function<
double operator() ( const OUString & rStr ) double operator() ( const OUString & rStr )
{ {
rtl_math_ConversionStatus eConversionStatus; rtl_math_ConversionStatus eConversionStatus;
double fResult = ::rtl::math::stringToDouble( rStr, '.', ',', & eConversionStatus, NULL ); double fResult = ::rtl::math::stringToDouble( rStr, '.', ',', & eConversionStatus );
if( eConversionStatus != rtl_math_ConversionStatus_Ok ) if( eConversionStatus != rtl_math_ConversionStatus_Ok )
::rtl::math::setNan( & fResult ); ::rtl::math::setNan( & fResult );
......
...@@ -407,11 +407,11 @@ void CharacterProperties::AddDefaultsToMap( ...@@ -407,11 +407,11 @@ void CharacterProperties::AddDefaultsToMap(
using namespace ::com::sun::star::i18n::ScriptType; using namespace ::com::sun::star::i18n::ScriptType;
LanguageType nLang; LanguageType nLang;
nLang = MsLangId::resolveSystemLanguageByScriptType(LanguageTag::convertToLanguageType( aDefaultLocale, false), LATIN); nLang = MsLangId::resolveSystemLanguageByScriptType(LanguageTag::convertToLanguageType( aDefaultLocale, false), LATIN);
vcl::Font aFont = OutputDevice::GetDefaultFont( DefaultFontType::LATIN_SPREADSHEET, nLang, GetDefaultFontFlags::OnlyOne, 0 ); vcl::Font aFont = OutputDevice::GetDefaultFont( DefaultFontType::LATIN_SPREADSHEET, nLang, GetDefaultFontFlags::OnlyOne );
nLang = MsLangId::resolveSystemLanguageByScriptType(LanguageTag::convertToLanguageType( aDefaultLocale_CJK, false), ASIAN); nLang = MsLangId::resolveSystemLanguageByScriptType(LanguageTag::convertToLanguageType( aDefaultLocale_CJK, false), ASIAN);
vcl::Font aFontCJK = OutputDevice::GetDefaultFont( DefaultFontType::CJK_SPREADSHEET, nLang, GetDefaultFontFlags::OnlyOne, 0 ); vcl::Font aFontCJK = OutputDevice::GetDefaultFont( DefaultFontType::CJK_SPREADSHEET, nLang, GetDefaultFontFlags::OnlyOne );
nLang = MsLangId::resolveSystemLanguageByScriptType(LanguageTag::convertToLanguageType( aDefaultLocale_CTL, false), COMPLEX); nLang = MsLangId::resolveSystemLanguageByScriptType(LanguageTag::convertToLanguageType( aDefaultLocale_CTL, false), COMPLEX);
vcl::Font aFontCTL = OutputDevice::GetDefaultFont( DefaultFontType::CTL_SPREADSHEET, nLang, GetDefaultFontFlags::OnlyOne, 0 ); vcl::Font aFontCTL = OutputDevice::GetDefaultFont( DefaultFontType::CTL_SPREADSHEET, nLang, GetDefaultFontFlags::OnlyOne );
::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_CHAR_FONT_NAME, OUString( aFont.GetName() ) ); ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_CHAR_FONT_NAME, OUString( aFont.GetName() ) );
::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_CHAR_FONT_STYLE_NAME, OUString(aFont.GetStyleName()) ); ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_CHAR_FONT_STYLE_NAME, OUString(aFont.GetStyleName()) );
......
...@@ -238,7 +238,7 @@ void CandleStickChart::createShapes() ...@@ -238,7 +238,7 @@ void CandleStickChart::createShapes()
uno::Reference< drawing::XShape > xShape = uno::Reference< drawing::XShape > xShape =
m_pShapeFactory->createLine2D( xPointGroupShape_Shapes, m_pShapeFactory->createLine2D( xPointGroupShape_Shapes,
PolyToPointSequence(aPoly), NULL); PolyToPointSequence(aPoly));
setMappedProperties( xShape, xPointProp, PropertyMapper::getPropertyNameMapForLineSeriesProperties() ); setMappedProperties( xShape, xPointProp, PropertyMapper::getPropertyNameMapForLineSeriesProperties() );
} }
...@@ -290,7 +290,7 @@ void CandleStickChart::createShapes() ...@@ -290,7 +290,7 @@ void CandleStickChart::createShapes()
{ {
uno::Reference< drawing::XShape > xShape = uno::Reference< drawing::XShape > xShape =
m_pShapeFactory->createLine2D( xPointGroupShape_Shapes, m_pShapeFactory->createLine2D( xPointGroupShape_Shapes,
PolyToPointSequence(aPoly), NULL ); PolyToPointSequence(aPoly) );
uno::Reference< beans::XPropertySet > xProp( xShape, uno::UNO_QUERY ); uno::Reference< beans::XPropertySet > xProp( xShape, uno::UNO_QUERY );
if(xProp.is()) if(xProp.is())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment