[Libreoffice-commits] core.git: ucbhelper/source ucb/source

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 12 09:39:06 UTC 2019


 ucb/source/ucp/ftp/ftpurl.cxx             |    4 ++--
 ucb/source/ucp/hierarchy/hierarchyuri.cxx |   12 ++++++------
 ucb/source/ucp/package/pkgprovider.cxx    |    2 +-
 ucb/source/ucp/package/pkguri.cxx         |   14 +++++++-------
 ucb/source/ucp/tdoc/tdoc_content.cxx      |    6 +++---
 ucbhelper/source/provider/resultset.cxx   |    2 +-
 6 files changed, 20 insertions(+), 20 deletions(-)

New commits:
commit b937a95b4e3f372f64450a6bfea9a7efb5c16464
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Sun Aug 11 18:19:03 2019 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Mon Aug 12 11:38:04 2019 +0200

    Fix typos
    
    Change-Id: Ic49b4cc6f2d0e0ac4d2635da2447bc6a2db5322e
    Reviewed-on: https://gerrit.libreoffice.org/77275
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index a72a153d5eac..3d04a716a82c 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -563,11 +563,11 @@ OUString FTPURL::net_title() const
             throw curl_exception(err);
 #endif
         else if(try_more && err == CURLE_FTP_ACCESS_DENIED) {
-            // We  were  either denied access when trying to login to
+            // We were either denied access when trying to login to
             //  an FTP server or when trying to change working directory
             //  to the one given in the URL.
             if(!m_aPathSegmentVec.empty())
-                // determine title form url
+                // determine title from URL
                 aNetTitle = decodePathSegment(m_aPathSegmentVec.back());
             else
                 // must be root
diff --git a/ucb/source/ucp/hierarchy/hierarchyuri.cxx b/ucb/source/ucp/hierarchy/hierarchyuri.cxx
index 6bd2fc5952f1..cc7aed266e58 100644
--- a/ucb/source/ucp/hierarchy/hierarchyuri.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchyuri.cxx
@@ -47,10 +47,10 @@ void HierarchyUri::init() const
         m_aService.clear();
         m_aParentUri.clear();
 
-        // URI must match at least: <sheme>:
+        // URI must match at least: <scheme>:
         if ( m_aUri.getLength() < HIERARCHY_URL_SCHEME_LENGTH + 1 )
         {
-            // error, but remember that we did a init().
+            // error, but remember that we did an init().
             m_aPath = "/";
             return;
         }
@@ -110,7 +110,7 @@ void HierarchyUri::init() const
                 // Only <scheme>:// ?
                 if ( nStart == m_aUri.getLength() )
                 {
-                    // error, but remember that we did a init().
+                    // error, but remember that we did an init().
                     m_aPath = "/";
                     return;
                 }
@@ -118,7 +118,7 @@ void HierarchyUri::init() const
                 // Empty path segments?
                 if ( m_aUri.indexOf("//", nStart) != -1 )
                 {
-                    // error, but remember that we did a init().
+                    // error, but remember that we did an init().
                     m_aPath = "/";
                     return;
                 }
@@ -128,7 +128,7 @@ void HierarchyUri::init() const
                 // Only <scheme>:/// ?
                 if ( nEnd == nStart )
                 {
-                    // error, but remember that we did a init().
+                    // error, but remember that we did an init().
                     m_aPath = "/";
                     return;
                 }
@@ -171,7 +171,7 @@ void HierarchyUri::init() const
         }
         else
         {
-            // error, but remember that we did a init().
+            // error, but remember that we did an init().
             m_aPath = "/";
         }
     }
diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx
index 7b7848e9a72d..b014c6c01915 100644
--- a/ucb/source/ucp/package/pkgprovider.cxx
+++ b/ucb/source/ucp/package/pkgprovider.cxx
@@ -178,7 +178,7 @@ uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent(
     if ( !aUri.isValid() )
         throw ucb::IllegalIdentifierException();
 
-    // Create a new identifier for the mormalized URL returned by
+    // Create a new identifier for the normalized URL returned by
     // PackageUri::getUri().
     uno::Reference< ucb::XContentIdentifier > xId = new ::ucbhelper::ContentIdentifier( aUri.getUri() );
 
diff --git a/ucb/source/ucp/package/pkguri.cxx b/ucb/source/ucp/package/pkguri.cxx
index 95cb0b7d8874..0458e73085a3 100644
--- a/ucb/source/ucp/package/pkguri.cxx
+++ b/ucb/source/ucp/package/pkguri.cxx
@@ -70,10 +70,10 @@ void PackageUri::init() const
     m_aParam.clear();
     m_aScheme.clear();
 
-    // URI must match at least: <sheme>://<non_empty_url_to_file>
+    // URI must match at least: <scheme>://<non_empty_url_to_file>
     if ( m_aUri.getLength() < PACKAGE_URL_SCHEME_LENGTH + 4 )
     {
-        // error, but remember that we did a init().
+        // error, but remember that we did an init().
         m_aPath = "/";
         return;
     }
@@ -85,7 +85,7 @@ void PackageUri::init() const
          ||
          ( m_aUri[ PACKAGE_URL_SCHEME_LENGTH + 2 ] != '/' ) )
     {
-        // error, but remember that we did a init().
+        // error, but remember that we did an init().
         m_aPath = "/";
         return;
     }
@@ -124,7 +124,7 @@ void PackageUri::init() const
         {
             // Only <scheme>:/// - Empty authority
 
-            // error, but remember that we did a init().
+            // error, but remember that we did an init().
             m_aPath = "/";
             return;
         }
@@ -134,7 +134,7 @@ void PackageUri::init() const
             {
                 // Only <scheme>://// or <scheme>://<something>
 
-                // error, but remember that we did a init().
+                // error, but remember that we did an init().
                 m_aPath = "/";
                 return;
             }
@@ -185,7 +185,7 @@ void PackageUri::init() const
               || ::comphelper::OStorageHelper::PathHasSegment( m_aPath, ".." )
               || ::comphelper::OStorageHelper::PathHasSegment( m_aPath, "." ) )
             {
-                // error, but remember that we did a init().
+                // error, but remember that we did an init().
                 m_aPath = "/";
                 return;
             }
@@ -222,7 +222,7 @@ void PackageUri::init() const
     }
     else
     {
-        // error, but remember that we did a init().
+        // error, but remember that we did an init().
         m_aPath = "/";
     }
 
diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx
index 93b4cff26e67..910e95dd9dcf 100644
--- a/ucb/source/ucp/tdoc/tdoc_content.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_content.cxx
@@ -2371,7 +2371,7 @@ void Content::renameData(
     }
     catch ( embed::InvalidStorageException const & )
     {
-        // this storage is in invalid state for eny reason
+        // this storage is in invalid state for any reason
         OSL_FAIL( "Caught InvalidStorageException!" );
         return;
     }
@@ -2435,7 +2435,7 @@ bool Content::removeData()
     }
     catch ( embed::InvalidStorageException const & )
     {
-        // this storage is in invalid state for eny reason
+        // this storage is in invalid state for any reason
         OSL_FAIL( "Caught InvalidStorageException!" );
         return false;
     }
@@ -2500,7 +2500,7 @@ bool Content::copyData( const Uri & rSourceUri, const OUString & rNewName )
     }
     catch ( embed::InvalidStorageException const & )
     {
-        // this storage is in invalid state for eny reason
+        // this storage is in invalid state for any reason
         OSL_FAIL( "Caught InvalidStorageException!" );
         return false;
     }
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index 82d7dc734a60..6494bb907914 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -513,7 +513,7 @@ sal_Bool SAL_CALL ResultSet::absolute( sal_Int32 row )
 
     If the given row number is negative, the cursor moves to an absolute row
     position with respect to the end of the result set. For example, calling
-    absolaute( -1 ) positions the cursor on the last row, absolaute( -2 )
+    absolute( -1 ) positions the cursor on the last row, absolute( -2 )
     indicates the next-to-last row, and so on.
 
     An attempt to position the cursor beyond the first/last row in the result


More information about the Libreoffice-commits mailing list