[Libreoffice-commits] core.git: include/sfx2 sfx2/source sw/qa sw/source
Andrea Gelmini (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 15 13:13:26 UTC 2020
include/sfx2/AccessibilityCheck.hxx | 2 +-
sfx2/source/accessibility/AccessibilityCheck.cxx | 5 ++++-
sw/qa/core/accessibilitycheck/AccessibilityCheckTest.cxx | 4 ++--
sw/source/uibase/app/docst.cxx | 2 +-
sw/source/uibase/shells/basesh.cxx | 2 +-
5 files changed, 9 insertions(+), 6 deletions(-)
New commits:
commit bc2cec8162a184b1a44cc37766924d65e57c4ce7
Author: Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Mon Aug 31 17:05:11 2020 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue Sep 15 15:12:47 2020 +0200
Fix typo in code
It passed "make check" on Linux
Change-Id: Id56c9b50540a4de1950dfc4b49ea783d164a6604
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101811
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/include/sfx2/AccessibilityCheck.hxx b/include/sfx2/AccessibilityCheck.hxx
index 185bc050d771..959601c9872e 100644
--- a/include/sfx2/AccessibilityCheck.hxx
+++ b/include/sfx2/AccessibilityCheck.hxx
@@ -27,7 +27,7 @@ public:
virtual void check() = 0;
- AccessibilityIssueCollection& getIssueCollecton();
+ AccessibilityIssueCollection& getIssueCollection();
};
} // end sfx namespace
diff --git a/sfx2/source/accessibility/AccessibilityCheck.cxx b/sfx2/source/accessibility/AccessibilityCheck.cxx
index 7e6c3209053c..adb0ddf282d6 100644
--- a/sfx2/source/accessibility/AccessibilityCheck.cxx
+++ b/sfx2/source/accessibility/AccessibilityCheck.cxx
@@ -14,7 +14,10 @@ namespace sfx
{
AccessibilityCheck::~AccessibilityCheck() = default;
-AccessibilityIssueCollection& AccessibilityCheck::getIssueCollecton() { return m_aIssueCollection; }
+AccessibilityIssueCollection& AccessibilityCheck::getIssueCollection()
+{
+ return m_aIssueCollection;
+}
} // end sfx namespace
diff --git a/sw/qa/core/accessibilitycheck/AccessibilityCheckTest.cxx b/sw/qa/core/accessibilitycheck/AccessibilityCheckTest.cxx
index 40cf5d905bac..e7d96f8ea993 100644
--- a/sw/qa/core/accessibilitycheck/AccessibilityCheckTest.cxx
+++ b/sw/qa/core/accessibilitycheck/AccessibilityCheckTest.cxx
@@ -31,7 +31,7 @@ CPPUNIT_TEST_FIXTURE(AccessibilityCheckTest, testCheckDocumentIssues)
CPPUNIT_ASSERT(pDoc);
sw::AccessibilityCheck aCheck(pDoc);
aCheck.check();
- auto& aIssues = aCheck.getIssueCollecton().getIssues();
+ auto& aIssues = aCheck.getIssueCollection().getIssues();
CPPUNIT_ASSERT_EQUAL(size_t(2), aIssues.size());
CPPUNIT_ASSERT_EQUAL(sfx::AccessibilityIssueID::DOCUMENT_LANGUAGE, aIssues[0]->m_eIssueID);
CPPUNIT_ASSERT_EQUAL(sfx::AccessibilityIssueID::DOCUMENT_TITLE, aIssues[1]->m_eIssueID);
@@ -43,7 +43,7 @@ CPPUNIT_TEST_FIXTURE(AccessibilityCheckTest, testTableSplitMergeAndAltText)
CPPUNIT_ASSERT(pDoc);
sw::AccessibilityCheck aCheck(pDoc);
aCheck.check();
- auto& aIssues = aCheck.getIssueCollecton().getIssues();
+ auto& aIssues = aCheck.getIssueCollection().getIssues();
CPPUNIT_ASSERT_EQUAL(size_t(7), aIssues.size());
CPPUNIT_ASSERT_EQUAL(sfx::AccessibilityIssueID::NO_ALT_GRAPHIC, aIssues[0]->m_eIssueID);
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index 6886b548ba56..666db6b0d9a9 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -1471,7 +1471,7 @@ sfx::AccessibilityIssueCollection SwDocShell::runAccessibilityCheck()
{
sw::AccessibilityCheck aCheck(m_xDoc.get());
aCheck.check();
- return aCheck.getIssueCollecton();
+ return aCheck.getIssueCollection();
}
std::set<Color> SwDocShell::GetDocColors()
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 4dfd92584a0e..b0ba28e53074 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -2674,7 +2674,7 @@ void SwBaseShell::ExecDlg(SfxRequest &rReq)
{
sw::AccessibilityCheck aCheck(rSh.GetDoc());
aCheck.check();
- svx::AccessibilityCheckDialog aDialog(pMDI, aCheck.getIssueCollecton());
+ svx::AccessibilityCheckDialog aDialog(pMDI, aCheck.getIssueCollection());
aDialog.run();
}
break;
More information about the Libreoffice-commits
mailing list