embeddedobj/source/msole/olecomponent.cxx | 18 ------------------ 1 file changed, 18 deletions(-)
New commits: commit a00f608e6ae847b64a1824261029d770ccba841e Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Mar 6 16:41:50 2024 +0600 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Mar 11 04:45:23 2024 +0100 Drop old "SvGlobalName order" compatibility hack It was added in commit 7afe74c37ed737f9d7a7c9c77877a0bde6997771 (INTEGRATION: CWS os54 (1.21.10); FILE MERGED, 2005-03-11) for issue #i30510# related to "StampIt". Hopefully now, after almost 20 years, the hack is not needed anymore. Change-Id: Id39765b9d2c51fd487c48ce06382c068bab08959 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164459 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx index 98ab58c8c622..63436bbcfea6 100644 --- a/embeddedobj/source/msole/olecomponent.cxx +++ b/embeddedobj/source/msole/olecomponent.cxx @@ -1717,24 +1717,6 @@ sal_Int64 SAL_CALL OleComponent::getSomething( const css::uno::Sequence< sal_Int uno::Sequence < sal_Int8 > aCLSID = GetCLSID(); if ( MimeConfigurationHelper::ClassIDsEqual( aIdentifier, aCLSID ) ) return comphelper::getSomething_cast(m_pNativeImpl->m_pObj.get()); - - // compatibility hack for old versions: CLSID was used in wrong order (SvGlobalName order) - sal_Int32 nLength = aIdentifier.getLength(); - if ( nLength == 16 ) - { - for ( sal_Int32 n=8; n<16; n++ ) - if ( aIdentifier[n] != aCLSID[n] ) - return 0; - if ( aIdentifier[7] == aCLSID[6] && - aIdentifier[6] == aCLSID[7] && - aIdentifier[5] == aCLSID[4] && - aIdentifier[4] == aCLSID[5] && - aIdentifier[3] == aCLSID[0] && - aIdentifier[2] == aCLSID[1] && - aIdentifier[1] == aCLSID[2] && - aIdentifier[0] == aCLSID[3] ) - return comphelper::getSomething_cast(m_pNativeImpl->m_pObj.get()); - } } catch ( const uno::Exception& ) {