sfx2/source/appl/appcfg.cxx |   18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

New commits:
commit c5ae73c8f3abdb067e3cef0cb5565e1f00ae08ea
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Jul 16 14:03:48 2023 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Tue Jul 18 08:52:05 2023 +0200

    Drop aSendSet
    
    ... which was never used, since its introduction in the initial import.
    
    Change-Id: If962e24663a53911977992e4d60fa8abe5b6ff75
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154461
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index 3c8fe3c124f6..681d4e2bd576 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -446,21 +446,15 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& 
rSet )
 
 void SfxApplication::SetOptions(const SfxItemSet &rSet)
 {
-    SvtPathOptions aPathOptions;
-
-    // Data is saved in DocInfo and IniManager
-
-    SfxAllItemSet aSendSet( rSet );
-
     // PathName
     if ( const SfxAllEnumItem* pEnumItem = 
rSet.GetItemIfSet(SID_ATTR_PATHNAME))
     {
-        sal_uInt32 nCount = pEnumItem->GetTextCount();
-        OUString aNoChangeStr( ' ' );
-        for( sal_uInt32 nPath=0; nPath<nCount; ++nPath )
+        sal_uInt16 nCount = pEnumItem->GetTextCount();
+        SvtPathOptions aPathOptions;
+        for( sal_uInt16 nPath=0; nPath<nCount; ++nPath )
         {
-            const OUString& sValue = 
pEnumItem->GetTextByPos(static_cast<sal_uInt16>(nPath));
-            if ( sValue != aNoChangeStr )
+            const OUString& sValue = pEnumItem->GetTextByPos(nPath);
+            if ( sValue != " " ) // "No change" string
             {
                 switch( static_cast<SvtPathOptions::Paths>(nPath) )
                 {
@@ -531,8 +525,6 @@ void SfxApplication::SetOptions(const SfxItemSet &rSet)
                 }
             }
         }
-
-        aSendSet.ClearItem( SID_ATTR_PATHNAME );
     }
 
     SetOptions_Impl( rSet );

Reply via email to