[Libreoffice-commits] core.git: include/xmloff xmloff/source

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Tue Sep 1 06:51:16 UTC 2020


 include/xmloff/SettingsExportHelper.hxx        |    2 +-
 xmloff/source/core/DocumentSettingsContext.cxx |    4 ++--
 xmloff/source/core/SettingsExportHelper.cxx    |    8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 139f06fb3bc559f7773ddd8ccf15c133eeac7317
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Mon Aug 31 15:48:24 2020 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue Sep 1 08:50:38 2020 +0200

    Fix typo in code
    
    It passed "make check" on Linux
    
    Change-Id: I5aff28a8d241441335d4cede12a013384945aa9f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101789
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/include/xmloff/SettingsExportHelper.hxx b/include/xmloff/SettingsExportHelper.hxx
index 0937935a9c39..784c8dd67075 100644
--- a/include/xmloff/SettingsExportHelper.hxx
+++ b/include/xmloff/SettingsExportHelper.hxx
@@ -45,7 +45,7 @@ class XMLOFF_DLLPUBLIC XMLSettingsExportHelper
 {
     ::xmloff::XMLSettingsExportContext& m_rContext;
 
-    css::uno::Reference< css::util::XStringSubstitution > mxStringSubsitution;
+    css::uno::Reference< css::util::XStringSubstitution > mxStringSubstitution;
 
     void ManipulateSetting( css::uno::Any& rAny, const OUString& rName ) const;
 
diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx
index c91499e75605..96313067a491 100644
--- a/xmloff/source/core/DocumentSettingsContext.cxx
+++ b/xmloff/source/core/DocumentSettingsContext.cxx
@@ -517,11 +517,11 @@ void XMLConfigItemContext::ManipulateConfigItem()
         try
         {
             uno::Reference< uno::XComponentContext > xContext( GetImport().GetComponentContext() );
-            uno::Reference< util::XStringSubstitution > xStringSubsitution( util::PathSubstitution::create(xContext) );
+            uno::Reference< util::XStringSubstitution > xStringSubstitution( util::PathSubstitution::create(xContext) );
 
             OUString aURL;
             mrAny >>= aURL;
-            aURL = xStringSubsitution->substituteVariables( aURL, false );
+            aURL = xStringSubstitution->substituteVariables( aURL, false );
             mrAny <<= aURL;
         }
         catch( uno::Exception& )
diff --git a/xmloff/source/core/SettingsExportHelper.cxx b/xmloff/source/core/SettingsExportHelper.cxx
index 853db459e374..fbabfe5df775 100644
--- a/xmloff/source/core/SettingsExportHelper.cxx
+++ b/xmloff/source/core/SettingsExportHelper.cxx
@@ -491,11 +491,11 @@ void XMLSettingsExportHelper::ManipulateSetting( uno::Any& rAny, const OUString&
     else if( (rName == gsColorTableURL) || (rName == gsLineEndTableURL) || (rName == gsHatchTableURL) ||
              (rName == gsDashTableURL) || (rName == gsGradientTableURL) || (rName == gsBitmapTableURL ) )
     {
-        if( !mxStringSubsitution.is() )
+        if( !mxStringSubstitution.is() )
         {
             try
             {
-                const_cast< XMLSettingsExportHelper* >(this)->mxStringSubsitution =
+                const_cast< XMLSettingsExportHelper* >(this)->mxStringSubstitution =
                     util::PathSubstitution::create( m_rContext.GetComponentContext() );
             }
             catch( uno::Exception& )
@@ -504,11 +504,11 @@ void XMLSettingsExportHelper::ManipulateSetting( uno::Any& rAny, const OUString&
             }
         }
 
-        if( mxStringSubsitution.is() )
+        if( mxStringSubstitution.is() )
         {
             OUString aURL;
             rAny >>= aURL;
-            aURL = mxStringSubsitution->reSubstituteVariables( aURL );
+            aURL = mxStringSubstitution->reSubstituteVariables( aURL );
             rAny <<= aURL;
         }
     }


More information about the Libreoffice-commits mailing list