You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2022/12/23 09:44:04 UTC

[openoffice] branch AOO41X updated: Revert "#i126762# patch by: hanya"

This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO41X by this push:
     new 2d4eee100a Revert "#i126762# patch by: hanya"
2d4eee100a is described below

commit 2d4eee100aede72b3a0242110737907016f1b898
Author: mseidel <ms...@apache.org>
AuthorDate: Fri Dec 23 10:42:29 2022 +0100

    Revert "#i126762# patch by: hanya"
    
    This reverts commit d6a3fbd0259e572c54d626e74753693b08bd88fd.
    
    This commit produced crashes, needs further investigation.
---
 .../source/spellcheck/spell/sspellimp.cxx             | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/main/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/main/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 0628702db9..31efa2d940 100644
--- a/main/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/main/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -33,7 +33,6 @@
 #include <tools/debug.hxx>
 #include <unotools/processfactory.hxx>
 #include <osl/mutex.hxx>
-#include <com/sun/star/ucb/XSimpleFileAccess.hpp>
 
 #include <lingutil.hxx>
 #include <hunspell.hxx>
@@ -160,18 +159,6 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
         numdict = aDics.size();
         if (numdict)
         {
-            uno::Reference< lang::XMultiServiceFactory > xServiceFactory( utl::getProcessServiceFactory() );
-            uno::Reference< ucb::XSimpleFileAccess > xAccess;
-            try
-            {
-                xAccess.set( xServiceFactory->createInstance( 
-                        A2OU( "com.sun.star.ucb.SimpleFileAccess" ) ), uno::UNO_QUERY_THROW );
-            }
-            catch (uno::Exception & e)
-            {
-                DBG_ASSERT( 0, "failed to get input stream" );
-                (void) e;
-            }
             // get supported locales from the dictionaries-to-use...
             sal_Int32 k = 0;
             std::set< rtl::OUString, lt_rtl_OUString > aLocaleNamesSet;
@@ -179,14 +166,10 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
             for (aDictIt = aDics.begin();  aDictIt != aDics.end();  ++aDictIt)
             {
                 uno::Sequence< rtl::OUString > aLocaleNames( aDictIt->aLocaleNames );
-                uno::Sequence< rtl::OUString > aLocations( aDictIt->aLocations );
                 sal_Int32 nLen2 = aLocaleNames.getLength();
                 for (k = 0;  k < nLen2;  ++k)
                 {
-                    if (xAccess.is() && xAccess->exists(aLocations[k]))
-                    {
-                        aLocaleNamesSet.insert( aLocaleNames[k] );
-                    }
+                    aLocaleNamesSet.insert( aLocaleNames[k] );
                 }
             }
             // ... and add them to the resulting sequence