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

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 15 17:48:47 UTC 2021


 include/sfx2/objsh.hxx           |    2 +-
 sfx2/source/doc/objstor.cxx      |    2 +-
 sfx2/source/doc/sfxbasemodel.cxx |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 058d4f77bd74690cd66504b681cbede6af82de6b
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Wed Feb 17 18:18:06 2021 +0100
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Mar 15 18:48:10 2021 +0100

    Fix typo in code
    
    It passed make check on Linux
    
    Change-Id: Idf02a51ff3f8a0a25d30606ea9744ec8d896924e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111083
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 40715f29e6ac..5d95f29bf3ea 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -316,7 +316,7 @@ public:
     virtual bool                Save();
     virtual bool                SaveAs( SfxMedium &rMedium  );
     virtual bool                SaveCompleted( const css::uno::Reference< css::embed::XStorage >& xStorage );
-    bool                        SwitchPersistance(
+    bool                        SwitchPersistence(
                                     const css::uno::Reference< css::embed::XStorage >& xStorage );
     virtual void                UpdateLinks();
     virtual bool                LoadExternal( SfxMedium& rMedium );
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index bc5e80224d84..653ea8877a94 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -3423,7 +3423,7 @@ static bool StoragesOfUnknownMediaTypeAreCopied_Impl( const uno::Reference< embe
     return true;
 }
 
-bool SfxObjectShell::SwitchPersistance( const uno::Reference< embed::XStorage >& xStorage )
+bool SfxObjectShell::SwitchPersistence( const uno::Reference< embed::XStorage >& xStorage )
 {
     bool bResult = false;
     // check for wrong creation of object container
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index dd0d7b54caf6..5971b7729413 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -3798,7 +3798,7 @@ void SAL_CALL SfxBaseModel::switchToStorage( const Reference< embed::XStorage >&
     // the persistence should be switched only if the storage is different
     if ( xStorage != m_pData->m_pObjectShell->GetStorage() )
     {
-        if ( !m_pData->m_pObjectShell->SwitchPersistance( xStorage ) )
+        if ( !m_pData->m_pObjectShell->SwitchPersistence( xStorage ) )
         {
             ErrCode nError = m_pData->m_pObjectShell->GetErrorCode();
             nError = nError ? nError : ERRCODE_IO_GENERAL;


More information about the Libreoffice-commits mailing list