diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2019-08-19 21:44:43 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-20 09:07:41 +0200 |
commit | 0f689f80e9bd3a0f90422df70426be5b50972871 (patch) | |
tree | 7b686fae35ab38fc7fd5d89a140b1350125023e1 /sal | |
parent | 65ae1e182de7ac46e2062dcef0f28a2c1f36b3d2 (diff) |
Fix typos
Change-Id: Ib61f500f7f9199e524d6ba4de419eda7fb30abcf
Reviewed-on: https://gerrit.libreoffice.org/77761
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 6 | ||||
-rw-r--r-- | sal/qa/rtl/ostring/rtl_str.cxx | 12 | ||||
-rw-r--r-- | sal/qa/rtl/oustring/rtl_ustr.cxx | 12 |
3 files changed, 15 insertions, 15 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 ); |