summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2019-08-19 21:44:43 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-20 09:07:41 +0200
commit0f689f80e9bd3a0f90422df70426be5b50972871 (patch)
tree7b686fae35ab38fc7fd5d89a140b1350125023e1
parent65ae1e182de7ac46e2062dcef0f28a2c1f36b3d2 (diff)
Fix typos
Change-Id: Ib61f500f7f9199e524d6ba4de419eda7fb30abcf Reviewed-on: https://gerrit.libreoffice.org/77761 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--sal/qa/osl/file/osl_File.cxx6
-rw-r--r--sal/qa/rtl/ostring/rtl_str.cxx12
-rw-r--r--sal/qa/rtl/oustring/rtl_ustr.cxx12
-rw-r--r--sax/source/expatwrap/saxwriter.cxx2
-rw-r--r--sc/source/core/data/validat.cxx2
5 files changed, 17 insertions, 17 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index fa49b5d967b4..1b32320803e9 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -1870,7 +1870,7 @@ namespace osl_FileStatus
free(pTV_current);
free(pTV_access);
- CPPUNIT_ASSERT_MESSAGE("test for getAccessTime function: This test turns out that UNX pricision is no more than 1 sec, don't know how to test this function, in Windows test, it lost hour min sec, only have date time. ",
+ CPPUNIT_ASSERT_MESSAGE("test for getAccessTime function: This test turns out that UNX precision is no more than 1 sec, don't know how to test this function, in Windows test, it lost hour min sec, only have date time. ",
bOK);
}
@@ -1924,7 +1924,7 @@ namespace osl_FileStatus
free(pTV_current);
free(pTV_modify);
- CPPUNIT_ASSERT_MESSAGE("test for getModifyTime function: This test turns out that UNX pricision is no more than 1 sec, don't know how to improve this function. ",
+ CPPUNIT_ASSERT_MESSAGE("test for getModifyTime function: This test turns out that UNX precision is no more than 1 sec, don't know how to improve this function. ",
bOK);
}
@@ -3767,7 +3767,7 @@ namespace osl_DirectoryItem
nError1 = copyItem.getFileStatus(rFileStatus);
CPPUNIT_ASSERT_EQUAL(osl::FileBase::E_None, nError1);
- CPPUNIT_ASSERT_MESSAGE("test for copy_assin_Ctors function: test assinment operator here since it is same as copy constructor in test way.",
+ CPPUNIT_ASSERT_MESSAGE("test for copy_assin_Ctors function: test assignment operator here since it is same as copy constructor in test way.",
compareFileName(rFileStatus.getFileName(), aTmpName2));
}
diff --git a/sal/qa/rtl/ostring/rtl_str.cxx b/sal/qa/rtl/ostring/rtl_str.cxx
index e2d79d812d77..5a7d1a11ef38 100644
--- a/sal/qa/rtl/ostring/rtl_str.cxx
+++ b/sal/qa/rtl/ostring/rtl_str.cxx
@@ -290,7 +290,7 @@ namespace rtl_str
void indexOfChar_001()
{
- OString aStr1 = "Line for a indexOfChar.";
+ OString aStr1 = "Line for an indexOfChar.";
sal_Int32 nIndex = rtl_str_indexOfChar( aStr1.getStr(), 'L' );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex == 0);
@@ -307,7 +307,7 @@ namespace rtl_str
void indexOfChar_002()
{
- OString aStr1 = "Line for a indexOfChar.";
+ OString aStr1 = "Line for an indexOfChar.";
sal_Int32 nIndex = rtl_str_indexOfChar( aStr1.getStr(), 'y' );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex == -1 );
@@ -380,13 +380,13 @@ namespace rtl_str
void indexOfStr_000_1()
{
- OString aStr1 = "Line for a indexOfStr.";
+ OString aStr1 = "Line for an indexOfStr.";
rtl_str_indexOfStr( aStr1.getStr(), 0 );
}
void indexOfStr_001()
{
- OString aStr1 = "Line for a indexOfStr.";
+ OString aStr1 = "Line for an indexOfStr.";
sal_Int32 nIndex = rtl_str_indexOfStr( aStr1.getStr(), "Line" );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex == 0);
@@ -397,13 +397,13 @@ namespace rtl_str
/* sal_Int32 */ nIndex = rtl_str_indexOfStr( aStr1.getStr(), "a" );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex == 9);
- /* sal_Int32 */ nIndex = rtl_str_indexOfStr( aStr1.getStr(), "a index" );
+ /* sal_Int32 */ nIndex = rtl_str_indexOfStr( aStr1.getStr(), "an index" );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex ==9);
}
void indexOfStr_002()
{
- OString aStr1 = "Line for a indexOfStr.";
+ OString aStr1 = "Line for an indexOfStr.";
sal_Int32 nIndex = rtl_str_indexOfStr( aStr1.getStr(), "not exist" );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex == -1 );
diff --git a/sal/qa/rtl/oustring/rtl_ustr.cxx b/sal/qa/rtl/oustring/rtl_ustr.cxx
index 615b171fe23d..e73ab9124108 100644
--- a/sal/qa/rtl/oustring/rtl_ustr.cxx
+++ b/sal/qa/rtl/oustring/rtl_ustr.cxx
@@ -304,7 +304,7 @@ namespace rtl_ustr
void indexOfChar_001()
{
- OUString aStr1("Line for a indexOfChar.");
+ OUString aStr1("Line for an indexOfChar.");
sal_Int32 nIndex = rtl_ustr_indexOfChar( aStr1.getStr(), 'L' );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex == 0);
@@ -321,7 +321,7 @@ namespace rtl_ustr
void indexOfChar_002()
{
- OUString aStr1("Line for a indexOfChar.");
+ OUString aStr1("Line for an indexOfChar.");
sal_Int32 nIndex = rtl_ustr_indexOfChar( aStr1.getStr(), 'y' );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex == -1 );
@@ -394,13 +394,13 @@ namespace rtl_ustr
void indexOfStr_000_1()
{
- OUString aStr1("Line for a indexOfStr.");
+ OUString aStr1("Line for an indexOfStr.");
rtl_ustr_indexOfStr( aStr1.getStr(), 0 );
}
void indexOfStr_001()
{
- OUString aStr1("Line for a indexOfStr.");
+ OUString aStr1("Line for an indexOfStr.");
OUString suSearch("Line");
sal_Int32 nIndex = rtl_ustr_indexOfStr( aStr1.getStr(), suSearch );
@@ -414,14 +414,14 @@ namespace rtl_ustr
/* sal_Int32 */ nIndex = rtl_ustr_indexOfStr( aStr1.getStr(), suSearch );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex == 9);
- /* OUString */ suSearch("a index");
+ /* OUString */ suSearch("an index");
/* sal_Int32 */ nIndex = rtl_ustr_indexOfStr( aStr1.getStr(), suSearch );
CPPUNIT_ASSERT_MESSAGE("index is wrong.", nIndex ==9);
}
void indexOfStr_002()
{
- OUString aStr1("Line for a indexOfStr.");
+ OUString aStr1("Line for an indexOfStr.");
OUString suSearch("not exist");
sal_Int32 nIndex = rtl_ustr_indexOfStr( aStr1.getStr(), suSearch );
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index 723031804dc2..38826c04fc36 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -245,7 +245,7 @@ void SaxWriterHelper::AddBytes(sal_Int8* pTarget, sal_uInt32& rPos,
AddBytes(pTarget, rPos, &pBytes[nCount], nRestCount);
}
-/** Converts an UTF16 string to UTF8 and does XML normalization
+/** Converts a UTF-16 string to UTF-8 and does XML normalization
@param pTarget
Pointer to a piece of memory, to where the output should be written. The caller
diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx
index 4e0e62ddcada..4fd89ccb206f 100644
--- a/sc/source/core/data/validat.cxx
+++ b/sc/source/core/data/validat.cxx
@@ -499,7 +499,7 @@ bool ScValidationData::IsDataValid(
else
{
// For numeric values use the resulting input line string to
- // determine length, otherwise a once accepted value maybe could
+ // determine length, otherwise an once accepted value maybe could
// not be edited again, for example abbreviated dates or leading
// zeros or trailing zeros after decimal separator change length.
OUString aStr;