You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2019/10/20 12:41:17 UTC

[openoffice] branch trunk updated: Fixed typos in comments

This is an automated email from the ASF dual-hosted git repository.

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


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

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

    Fixed typos in comments
---
 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));