summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2019-08-02 11:30:01 +0200
committerAndrea Gelmini <andrea.gelmini@gelma.net>2019-08-02 14:03:36 +0200
commit7bef1aa72271361921b452559bb5debe3bfcf925 (patch)
treeb3c52438585ea675846567edad7bfab81d2ebfb5 /sal/osl
parent493a1bfbc07394a94b6b8f0b35946b9e17c96001 (diff)
Fix typos
Change-Id: Ie183c445bf8a545f59aac7b0e29f72ab679a6cf3 Reviewed-on: https://gerrit.libreoffice.org/76852 Tested-by: Jenkins Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/all/filepath.cxx2
-rw-r--r--sal/osl/unx/file.cxx2
-rw-r--r--sal/osl/unx/nlsupport.cxx4
-rw-r--r--sal/osl/unx/time.cxx4
-rw-r--r--sal/osl/w32/file_url.cxx4
-rw-r--r--sal/osl/w32/module.cxx2
6 files changed, 9 insertions, 9 deletions
diff --git a/sal/osl/all/filepath.cxx b/sal/osl/all/filepath.cxx
index ae917c6d90ed..afba01739b1b 100644
--- a/sal/osl/all/filepath.cxx
+++ b/sal/osl/all/filepath.cxx
@@ -93,7 +93,7 @@ oslFileError SAL_CALL osl_abbreviateSystemPath( rtl_uString *ustrSystemPath, rtl
rtl_uString_newConcat( pustrCompacted, ustrPath, ustrFile );
- /* Event now if path was compacted to ".../..." it can be to large */
+ /* Event now if path was compacted to ".../..." it can be too large */
uPathWidth += uFileWidth;
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 0ee0b8887dd4..e961c36c7662 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -493,7 +493,7 @@ oslFileError FileHandle_Impl::writeFileAt(
if (nBytesToWrite >= m_bufsiz)
{
- // buffer to small, write through to file
+ // buffer too small, write through to file
sal_uInt64 uDone = 0;
result = writeAt(nOffset, &(buffer[*pBytesWritten]), nBytesToWrite, &uDone);
if (result != osl_File_E_None)
diff --git a/sal/osl/unx/nlsupport.cxx b/sal/osl/unx/nlsupport.cxx
index 616447ecafe3..9be260b6dd03 100644
--- a/sal/osl/unx/nlsupport.cxx
+++ b/sal/osl/unx/nlsupport.cxx
@@ -245,8 +245,8 @@ static rtl_Locale * parse_locale( const char * locale )
/*
* _nl_language_list[] is an array list of supported encodings. Because
* we are using a binary search, the list has to be in ascending order.
- * We are comparing the encodings case insensitiv, so the list has
- * to be completely upper- , or lowercase.
+ * We are comparing the encodings case insensitive, so the list has
+ * to be completely upper or lowercase.
*/
#if defined(__sun)
diff --git a/sal/osl/unx/time.cxx b/sal/osl/unx/time.cxx
index 4bd3003ef7d5..490865d9a859 100644
--- a/sal/osl/unx/time.cxx
+++ b/sal/osl/unx/time.cxx
@@ -167,7 +167,7 @@ sal_Bool SAL_CALL osl_getTimeValueFromDateTime( const oslDateTime* pDateTime, Ti
/* check if daylight saving time is in effect */
bias = aTime.tm_isdst > 0 ? altzone : timezone;
#else
- /* exspect daylight saving time to be one hour */
+ /* expect daylight saving time to be one hour */
bias = aTime.tm_isdst > 0 ? timezone - 3600 : timezone;
#endif
@@ -243,7 +243,7 @@ sal_Bool SAL_CALL osl_getSystemTimeFromLocalTime( const TimeValue* pLocalTimeVal
/* check if daylight saving time is in effect */
bias = pLocalTime->tm_isdst > 0 ? altzone : timezone;
#else
- /* exspect daylight saving time to be one hour */
+ /* expect daylight saving time to be one hour */
bias = pLocalTime->tm_isdst > 0 ? timezone - 3600 : timezone;
#endif
diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx
index 65bcd70552ed..bed0e734d7c3 100644
--- a/sal/osl/w32/file_url.cxx
+++ b/sal/osl/w32/file_url.cxx
@@ -121,8 +121,8 @@ static bool IsValidFilePathComponent(
cLast = *lpCurrent++;
}
- /* If we don't reached the end of the component the length of the component was to long
- ( See condition of while loop ) */
+ /* If we don't reached the end of the component the length of the component was too long
+ (See condition of while loop) */
if ( !lpComponentEnd )
{
bValid = false;
diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index 104a82826b94..6794fb512c87 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -61,7 +61,7 @@ oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 /*nRtldM
// In case of long path names (\\?\c:\...) try to shorten the filename.
// LoadLibrary cannot handle file names which exceed 260 letters.
- // In case the path is to long, the function will fail. However, the error
+ // In case the path is too long, the function will fail. However, the error
// code can be different. For example, it returned ERROR_FILENAME_EXCED_RANGE
// on Windows XP and ERROR_INSUFFICIENT_BUFFER on Windows 7 (64bit)
if (h == nullptr && Module->length > 260)