openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msei...@apache.org
Subject [openoffice] branch AOO42X updated: Fixed typos in comments
Date Sun, 20 Oct 2019 12:42:59 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/AOO42X by this push:
     new ce766fa  Fixed typos in comments
ce766fa is described below

commit ce766fa881e676289bae48de91e898037c20c9a2
Author: mseidel <mseidel@apache.org>
AuthorDate: Sun Oct 20 14:40:49 2019 +0200

    Fixed typos in comments
    
    (cherry picked from commit ae083ccbcb54fe75fa4f9b431d65fae934198b57)
---
 main/shell/source/win32/shlxthandler/infotips/infotips.cxx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/main/shell/source/win32/shlxthandler/infotips/infotips.cxx b/main/shell/source/win32/shlxthandler/infotips/infotips.cxx
index b737c12..2cc6a92 100644
--- a/main/shell/source/win32/shlxthandler/infotips/infotips.cxx
+++ b/main/shell/source/win32/shlxthandler/infotips/infotips.cxx
@@ -269,7 +269,7 @@ HRESULT STDMETHODCALLTYPE CInfoTip::GetInfoTip(DWORD /*dwFlags*/, wchar_t**
ppws
             msg += meta_info_accessor.getTagData( META_INFO_DESCRIPTION );
         }
 
-        //display midified time formatted into locale representation.
+        //display modified time formatted into locale representation.
         if ( iso8601_date_to_local_date(meta_info_accessor.getTagData(META_INFO_MODIFIED
)).length() > 0)
         {
 			if ( msg != EMPTY_STRING )
@@ -278,6 +278,7 @@ HRESULT STDMETHODCALLTYPE CInfoTip::GetInfoTip(DWORD /*dwFlags*/, wchar_t**
ppws
 			msg += iso8601_date_to_local_date(meta_info_accessor.getTagData(META_INFO_MODIFIED ));
 		}
     }
+
     catch (const std::exception&)
     {
         //return E_FAIL;
@@ -293,7 +294,7 @@ HRESULT STDMETHODCALLTYPE CInfoTip::GetInfoTip(DWORD /*dwFlags*/, wchar_t**
ppws
     }
 
 
-    //finalize and assignthe string.
+    //finalize and assign the string.
     LPMALLOC lpMalloc;
     HRESULT hr = SHGetMalloc(&lpMalloc);
 
@@ -354,7 +355,7 @@ HRESULT STDMETHODCALLTYPE CInfoTip::Load(LPCOLESTR pszFileName, DWORD
/*dwMode*/
     std::string fnameA = WStringToString(fname);
 
     // #115531#
-    // ZeroMemory because strncpy doesn't '\0'-terminates the destination
+    // ZeroMemory because strncpy doesn't '\0'-terminate the destination
     // string; reserve the last place in the buffer for the final '\0' 
     // that's why '(sizeof(m_szFileName) - 1)'
     ZeroMemory(m_szFileName, sizeof(m_szFileName));


Mime
View raw message