summaryrefslogtreecommitdiff
path: root/include/linguistic/lngprophelp.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-21 09:56:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-21 14:51:37 +0200
commit96ff90857a066da70b04684f71237056e12eddfe (patch)
tree42558928d3593502fed98970f9632b20bf73300f /include/linguistic/lngprophelp.hxx
parent9994120c8d0fe8c5a029390ad7411b99c18ff5c9 (diff)
reduce cost of some getProperty calls (tdf#125892)
use OUStringLiteral to avoid cost of repeated OUString construction from ascii literal Change-Id: I4f8a4714c093e890adaa5524172bdc91231a561a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122379 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/linguistic/lngprophelp.hxx')
-rw-r--r--include/linguistic/lngprophelp.hxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx
index 52af61c4e61c..f8ddd5d36991 100644
--- a/include/linguistic/lngprophelp.hxx
+++ b/include/linguistic/lngprophelp.hxx
@@ -55,7 +55,7 @@ typedef cppu::WeakImplHelper
class UNLESS_MERGELIBS(LNG_DLLPUBLIC) PropertyChgHelper :
public PropertyChgHelperBase
{
- css::uno::Sequence< OUString > aPropNames;
+ std::vector< OUString > aPropNames;
css::uno::Reference< css::uno::XInterface > xMyEvtObj;
::comphelper::OInterfaceContainerHelper2 aLngSvcEvtListeners;
css::uno::Reference< css::beans::XPropertySet > xPropSet;
@@ -77,14 +77,11 @@ protected:
virtual void SetDefaultValues();
virtual void GetCurrentValues();
- css::uno::Sequence< OUString > &
- GetPropNames() { return aPropNames; }
+ std::vector< OUString > & GetPropNames() { return aPropNames; }
css::uno::Reference<
css::beans::XPropertySet > &
GetPropSet() { return xPropSet; }
- void AddPropNames( const char *pNewNames[], sal_Int32 nCount );
-
virtual bool propertyChange_Impl( const css::beans::PropertyChangeEvent& rEvt );
public:
@@ -117,7 +114,7 @@ public:
void RemoveAsPropListener();
void LaunchEvent( const css::linguistic2::LinguServiceEvent& rEvt );
- const css::uno::Sequence< OUString > &
+ const std::vector< OUString > &
GetPropNames() const { return aPropNames; }
const css::uno::Reference< css::beans::XPropertySet > &
GetPropSet() const { return xPropSet; }