summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/api/SwXTextFrame.cxx2
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx4
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx6
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/qa/api/SwXTextFrame.cxx b/sw/qa/api/SwXTextFrame.cxx
index 546823b5dbe2..4e29f31604a9 100644
--- a/sw/qa/api/SwXTextFrame.cxx
+++ b/sw/qa/api/SwXTextFrame.cxx
@@ -53,7 +53,7 @@ public:
SwXTextFrame()
: apitest::XServiceInfo("SwXTextFrame", "com.sun.star.text.TextFrame"){};
uno::Reference<uno::XInterface> init() override;
- uno::Reference<text::XTextDocument> getTextDocument() { return mxTextDocument; }
+ const uno::Reference<text::XTextDocument>& getTextDocument() const { return mxTextDocument; }
void triggerDesktopTerminate() override { mxDesktop->terminate(); }
CPPUNIT_TEST_SUITE(SwXTextFrame);
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index 23cc46af3016..35edcd79c090 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -396,7 +396,7 @@ protected:
}
/// Get the length of the whole document.
- int getLength()
+ int getLength() const
{
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XEnumerationAccess> xParaEnumAccess(xTextDocument->getText(), uno::UNO_QUERY);
@@ -887,7 +887,7 @@ protected:
}
/// Get page count.
- int getPages()
+ int getPages() const
{
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(xModel->getCurrentController(), uno::UNO_QUERY);
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 10e9ee644983..a859f152400e 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -4057,7 +4057,7 @@ void SwUiWriterTest::testDde()
class IdleTask
{
public:
- bool GetFlag();
+ bool GetFlag() const;
IdleTask();
DECL_LINK( FlipFlag, Timer *, void );
private:
@@ -4077,7 +4077,7 @@ IdleTask::IdleTask() : flag( false )
}
//GetFlag() of IdleTask Class
-bool IdleTask::GetFlag()
+bool IdleTask::GetFlag() const
{
//returning the status of current flag
return flag;
@@ -4995,7 +4995,7 @@ void SwUiWriterTest::testTdf88453Table()
namespace
{
-int checkShells(SwDocShell* pSource, SwDocShell* pDestination)
+int checkShells(const SwDocShell* pSource, const SwDocShell* pDestination)
{
return int(SfxClassificationHelper::CheckPaste(pSource->getDocProperties(), pDestination->getDocProperties()));
}