summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-03-06 16:41:50 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-03-11 04:45:23 +0100
commita00f608e6ae847b64a1824261029d770ccba841e (patch)
tree61d3a5163f6a14e39260dd6141eaa8fbc4769da8 /embeddedobj
parent99c1bd1a4ef5365d8c26a41c8e858c67e673beb4 (diff)
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.kaganski@collabora.com>
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/olecomponent.cxx18
1 files changed, 0 insertions, 18 deletions
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& )
{