diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-05-09 20:14:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-09 22:25:16 +0200 |
commit | 0ffdfb58a07e2a1b89a36bc241c6a2767e82cd2c (patch) | |
tree | 1ddbd27874a54896e0777cf92447922b85517d9a /dbaccess/source/ui | |
parent | 44699b3de37f07090ac6fee1cd97aa76036e9700 (diff) |
workaround segfault in compiler on macos-clang-intel
Change-Id: I291599cd35d3f8be44949a57514bab5ac9f1a7e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167411
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/misc/WCopyTable.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index 25592ecd51e4..c13bb1844712 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -133,7 +133,7 @@ bool ObjectCopySource::isView() const void ObjectCopySource::copyUISettingsTo( const Reference< XPropertySet >& _rxObject ) const { - const OUString aCopyProperties[] = { + static constexpr OUString aCopyProperties[] { PROPERTY_FONT, PROPERTY_ROW_HEIGHT, PROPERTY_TEXTCOLOR,PROPERTY_TEXTLINECOLOR,PROPERTY_TEXTEMPHASIS,PROPERTY_TEXTRELIEF }; for (const auto & aCopyProperty : aCopyProperties) @@ -145,7 +145,7 @@ void ObjectCopySource::copyUISettingsTo( const Reference< XPropertySet >& _rxObj void ObjectCopySource::copyFilterAndSortingTo( const Reference< XConnection >& _xConnection,const Reference< XPropertySet >& _rxObject ) const { - std::pair< OUString, OUString > aProperties[] = { + static constexpr std::pair< OUString, OUString > aProperties[] { std::pair< OUString, OUString >(PROPERTY_FILTER,u" AND "_ustr) ,std::pair< OUString, OUString >(PROPERTY_ORDER,u" ORDER BY "_ustr) }; |