diff options
Diffstat (limited to 'sw/qa/api')
-rw-r--r-- | sw/qa/api/SwXTextFrame.cxx | 2 |
1 files changed, 1 insertions, 1 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); |