From acdba3c2eee18ef0c079b7c41cd4165e06c956c7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Jan 2018 15:10:58 +0200 Subject: loplugin:passstuffbyref more return improvements slightly less restrictive check when calling functions Change-Id: I35e268ac611797b1daa83777cda02288a635aa32 Reviewed-on: https://gerrit.libreoffice.org/47259 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/inc/swmodule.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/inc/swmodule.hxx') diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 8b9d8e265a18..7302281e7f66 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -191,7 +191,7 @@ public: // Redlining. std::size_t GetRedlineAuthor(); - OUString GetRedlineAuthor(std::size_t nPos); + OUString const & GetRedlineAuthor(std::size_t nPos); /// See SwXTextDocument::getTrackedChangeAuthors(). OUString GetRedlineAuthorInfo(); std::size_t InsertRedlineAuthor(const OUString& rAuthor); -- cgit