vcl/source/components/dtranscomp.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
New commits: commit 490062666900ff72ff629a7c8acf2365d7f0d0f6 Author: Michael Weghorn <[email protected]> AuthorDate: Fri Feb 27 16:33:23 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Sat Feb 28 09:26:40 2026 +0100 vcl: Merge GenericClipboard::getSupportedServiceNames{,_static} Move GenericClipboard::getSupportedServiceNames_static logic into its only caller. Change-Id: Id05f21e70f2eaeeb6c17383d085de7ad86610275 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200644 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/vcl/source/components/dtranscomp.cxx b/vcl/source/components/dtranscomp.cxx index f93e55d70eb9..c288ad413c8f 100644 --- a/vcl/source/components/dtranscomp.cxx +++ b/vcl/source/components/dtranscomp.cxx @@ -78,8 +78,6 @@ public: virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() override; - static Sequence< OUString > getSupportedServiceNames_static(); - /* * XClipboard */ @@ -110,12 +108,6 @@ public: } -Sequence< OUString > GenericClipboard::getSupportedServiceNames_static() -{ - Sequence< OUString > aRet { u"com.sun.star.datatransfer.clipboard.SystemClipboard"_ustr }; - return aRet; -} - OUString GenericClipboard::getImplementationName() { return u"com.sun.star.datatransfer.VCLGenericClipboard"_ustr; @@ -123,7 +115,8 @@ OUString GenericClipboard::getImplementationName() Sequence< OUString > GenericClipboard::getSupportedServiceNames() { - return getSupportedServiceNames_static(); + Sequence<OUString> aRet { u"com.sun.star.datatransfer.clipboard.SystemClipboard"_ustr }; + return aRet; } sal_Bool GenericClipboard::supportsService( const OUString& ServiceName )
