loplugin:subtlezeroinit: reportdesign
Change-Id: I20b7cf2b65900eb336e1a3c6f301eb08b47485a4
This commit is contained in:
@@ -241,7 +241,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
|
||||
static TPropertyNamePair s_aNameMap;
|
||||
if ( s_aNameMap.empty() )
|
||||
{
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBACKGROUND,TPropertyConverter(PROPERTY_BACKGROUNDCOLOR,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDER,TPropertyConverter(PROPERTY_BORDER,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDERCOLOR,TPropertyConverter(PROPERTY_BORDERCOLOR,aNoConverter)));
|
||||
@@ -254,7 +254,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
|
||||
static TPropertyNamePair s_aNameMap;
|
||||
if ( s_aNameMap.empty() )
|
||||
{
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CHARCOLOR,TPropertyConverter(PROPERTY_TEXTCOLOR,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBACKGROUND,TPropertyConverter(PROPERTY_BACKGROUNDCOLOR,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CHARUNDERLINECOLOR,TPropertyConverter(PROPERTY_TEXTLINECOLOR,aNoConverter)));
|
||||
@@ -265,7 +265,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDER,TPropertyConverter(PROPERTY_BORDER,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDERCOLOR,TPropertyConverter(PROPERTY_BORDERCOLOR,aNoConverter)));
|
||||
|
||||
std::shared_ptr<AnyConverter> aParaAdjust(new ParaAdjust());
|
||||
std::shared_ptr<AnyConverter> aParaAdjust(new ParaAdjust);
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_PARAADJUST,TPropertyConverter(PROPERTY_ALIGN,aParaAdjust)));
|
||||
}
|
||||
return s_aNameMap;
|
||||
@@ -275,7 +275,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
|
||||
static TPropertyNamePair s_aNameMap;
|
||||
if ( s_aNameMap.empty() )
|
||||
{
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CHARCOLOR,TPropertyConverter(PROPERTY_TEXTCOLOR,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBACKGROUND,TPropertyConverter(PROPERTY_BACKGROUNDCOLOR,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CHARUNDERLINECOLOR,TPropertyConverter(PROPERTY_TEXTLINECOLOR,aNoConverter)));
|
||||
@@ -285,7 +285,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLTEXTEMPHASISMARK,TPropertyConverter(PROPERTY_FONTEMPHASISMARK,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDER,TPropertyConverter(PROPERTY_BORDER,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDERCOLOR,TPropertyConverter(PROPERTY_BORDERCOLOR,aNoConverter)));
|
||||
std::shared_ptr<AnyConverter> aParaAdjust(new ParaAdjust());
|
||||
std::shared_ptr<AnyConverter> aParaAdjust(new ParaAdjust);
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_PARAADJUST,TPropertyConverter(PROPERTY_ALIGN,aParaAdjust)));
|
||||
}
|
||||
return s_aNameMap;
|
||||
@@ -296,7 +296,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
|
||||
static TPropertyNamePair s_aNameMap;
|
||||
if ( s_aNameMap.empty() )
|
||||
{
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(OUString("FillColor"),TPropertyConverter(PROPERTY_CONTROLBACKGROUND,aNoConverter)));
|
||||
s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_PARAADJUST,TPropertyConverter(PROPERTY_ALIGN,aNoConverter)));
|
||||
}
|
||||
|
@@ -146,7 +146,7 @@ void SAL_CALL DataProviderHandler::inspect(const uno::Reference< uno::XInterface
|
||||
m_xReportComponent.set( xNameCont->getByName("ReportComponent"), uno::UNO_QUERY );
|
||||
if ( m_xDataProvider.is() )
|
||||
{
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
|
||||
TPropertyNamePair aPropertyMediation;
|
||||
aPropertyMediation.insert( TPropertyNamePair::value_type( PROPERTY_MASTERFIELDS, TPropertyConverter(PROPERTY_MASTERFIELDS,aNoConverter) ) );
|
||||
aPropertyMediation.insert( TPropertyNamePair::value_type( PROPERTY_DETAILFIELDS, TPropertyConverter(PROPERTY_DETAILFIELDS,aNoConverter) ) );
|
||||
|
@@ -2987,7 +2987,7 @@ uno::Reference< sdbc::XRowSet > const & OReportController::getRowSet()
|
||||
xRowSetProp->setPropertyValue( PROPERTY_ACTIVECONNECTION, uno::makeAny( getConnection() ) );
|
||||
xRowSetProp->setPropertyValue( PROPERTY_APPLYFILTER, uno::makeAny( true ) );
|
||||
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
|
||||
std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
|
||||
TPropertyNamePair aPropertyMediation;
|
||||
aPropertyMediation.insert( TPropertyNamePair::value_type( PROPERTY_COMMAND, TPropertyConverter(PROPERTY_COMMAND,aNoConverter) ) );
|
||||
aPropertyMediation.insert( TPropertyNamePair::value_type( PROPERTY_COMMANDTYPE, TPropertyConverter(PROPERTY_COMMANDTYPE,aNoConverter) ) );
|
||||
|
Reference in New Issue
Block a user