stoc/source/proxy_factory/proxyfac.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit aaccb43dad5290cde04b36209ca9fa95d69ba060 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Sep 23 10:37:54 2023 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sun Sep 24 09:00:26 2023 +0200 tdf#157288: "Primary key" missing when right click a field during table edition Revert partly 0c2b2c9babfd781e0d9d68bb2a14a045b0c6ec4c "Use getXWeak in stoc" Change-Id: I0344510dee33c8740937354d64c0e60115606d26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157178 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx index 2653363b3c36..6745d0163c70 100644 --- a/stoc/source/proxy_factory/proxyfac.cxx +++ b/stoc/source/proxy_factory/proxyfac.cxx @@ -292,7 +292,8 @@ Any ProxyRoot::queryAggregation( Type const & rType ) OSL_ASSERT( cpp_env != nullptr ); // mind a new delegator, calculate current root: - Reference< XInterface > xRoot(getXWeak()); + Reference< XInterface > xRoot( + static_cast< OWeakObject * >(this), UNO_QUERY_THROW ); OUString oid; (*cpp_env->getObjectIdentifier)( cpp_env, &oid.pData, xRoot.get() ); OSL_ASSERT( !oid.isEmpty() );