[Libreoffice-commits] core.git: dbaccess/source
Stephan Bergmann
sbergman at redhat.com
Tue Aug 16 09:38:30 UTC 2016
dbaccess/source/core/api/tablecontainer.cxx | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
New commits:
commit 1eca527f253b828f009f2bff36a033ee02faf2a3
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Aug 16 11:38:08 2016 +0200
loplugin:stringstatic
Change-Id: I00cb0310c90601472472c570e6c3452605258059
diff --git a/dbaccess/source/core/api/tablecontainer.cxx b/dbaccess/source/core/api/tablecontainer.cxx
index f0a5b97..4ad8bb8 100644
--- a/dbaccess/source/core/api/tablecontainer.cxx
+++ b/dbaccess/source/core/api/tablecontainer.cxx
@@ -332,12 +332,10 @@ ObjectType OTableContainer::appendObject( const OUString& _rForName, const Refer
}
}
}
- const static OUString s_pTableProps[] = { OUString(PROPERTY_FILTER), OUString(PROPERTY_ORDER)
- , OUString(PROPERTY_APPLYFILTER), OUString(PROPERTY_FONT)
- , OUString(PROPERTY_ROW_HEIGHT), OUString(PROPERTY_TEXTCOLOR)
- , OUString(PROPERTY_TEXTLINECOLOR), OUString(PROPERTY_TEXTEMPHASIS)
- , OUString(PROPERTY_TEXTRELIEF) };
- Sequence< OUString> aNames(s_pTableProps, SAL_N_ELEMENTS(s_pTableProps));
+ Sequence< OUString> aNames{
+ PROPERTY_FILTER, PROPERTY_ORDER, PROPERTY_APPLYFILTER, PROPERTY_FONT,
+ PROPERTY_ROW_HEIGHT, PROPERTY_TEXTCOLOR, PROPERTY_TEXTLINECOLOR,
+ PROPERTY_TEXTEMPHASIS, PROPERTY_TEXTRELIEF};
if ( bModified || !lcl_isPropertySetDefaulted(aNames,xTableDefinition) )
::dbaccess::notifyDataSourceModified(m_xTableDefinitions,true);
More information about the Libreoffice-commits
mailing list