diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-25 20:31:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-26 08:30:42 +0100 |
commit | c83166ce7126b3c3c6aca8f6d2ab9cd9e16f5763 (patch) | |
tree | 2760b4870bf080fedcb40bf8c6f93c32030c4f7d /include/vcl | |
parent | a553c85cbd80a045b2e4742eefaa7fcc3953cb08 (diff) |
loplugin:passstuffbyref
Change-Id: I330e0ab6c9955939dad313f9d472f93e39dbd313
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109924
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/SwapFile.hxx | 2 | ||||
-rw-r--r-- | include/vcl/event.hxx | 2 | ||||
-rw-r--r-- | include/vcl/filter/PDFiumLibrary.hxx | 2 | ||||
-rw-r--r-- | include/vcl/graph.hxx | 2 | ||||
-rw-r--r-- | include/vcl/notebookbar/notebookbar.hxx | 2 | ||||
-rw-r--r-- | include/vcl/uitest/logger.hxx | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/include/vcl/SwapFile.hxx b/include/vcl/SwapFile.hxx index 55146d608eb8..bcfa0232c62c 100644 --- a/include/vcl/SwapFile.hxx +++ b/include/vcl/SwapFile.hxx @@ -43,7 +43,7 @@ public: utl::UCBContentHelper::Kill(maSwapURL.GetMainURL(INetURLObject::DecodeMechanism::NONE)); } - INetURLObject getSwapURL() const { return maSwapURL; } + const INetURLObject& getSwapURL() const { return maSwapURL; } OUString getSwapURLString() const { diff --git a/include/vcl/event.hxx b/include/vcl/event.hxx index 9173ce0e7d00..ef87d7728f6d 100644 --- a/include/vcl/event.hxx +++ b/include/vcl/event.hxx @@ -127,7 +127,7 @@ public: maLogicPosition = aLogicPosition; } - std::optional<Point> getLogicPosition() const + const std::optional<Point> & getLogicPosition() const { return maLogicPosition; } diff --git a/include/vcl/filter/PDFiumLibrary.hxx b/include/vcl/filter/PDFiumLibrary.hxx index f0ef24b348ea..0fbcf4fe2199 100644 --- a/include/vcl/filter/PDFiumLibrary.hxx +++ b/include/vcl/filter/PDFiumLibrary.hxx @@ -65,7 +65,7 @@ public: PDFium(); ~PDFium(); - OUString getLastError() const { return maLastError; } + const OUString& getLastError() const { return maLastError; } std::unique_ptr<PDFiumDocument> openDocument(const void* pData, int nSize); std::unique_ptr<PDFiumBitmap> createBitmap(int nWidth, int nHeight, int nAlpha); diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx index 79083bb5a224..f74cfe91ae30 100644 --- a/include/vcl/graph.hxx +++ b/include/vcl/graph.hxx @@ -182,7 +182,7 @@ public: bool IsDummyContext() const; void SetGfxLink(const std::shared_ptr<GfxLink>& rGfxLink); - std::shared_ptr<GfxLink> GetSharedGfxLink() const; + const std::shared_ptr<GfxLink> & GetSharedGfxLink() const; GfxLink GetGfxLink() const; bool IsGfxLink() const; diff --git a/include/vcl/notebookbar/notebookbar.hxx b/include/vcl/notebookbar/notebookbar.hxx index 35d37aec7b8d..4e5c24631eb0 100644 --- a/include/vcl/notebookbar/notebookbar.hxx +++ b/include/vcl/notebookbar/notebookbar.hxx @@ -49,7 +49,7 @@ public: bool IsWelded() const { return m_bIsWelded; } VclPtr<vcl::Window>& GetMainContainer() { return m_xVclContentArea; } - OUString GetUIFilePath() const { return m_sUIXMLDescription; } + const OUString & GetUIFilePath() const { return m_sUIXMLDescription; } void SetDisposeCallback(const Link<const SfxViewShell*, void> rDisposeCallback, const SfxViewShell* pViewShell); private: diff --git a/include/vcl/uitest/logger.hxx b/include/vcl/uitest/logger.hxx index 8a929cf578b3..2500c0d6f58e 100644 --- a/include/vcl/uitest/logger.hxx +++ b/include/vcl/uitest/logger.hxx @@ -60,7 +60,7 @@ public: void setAppName(OUString name) { app_name = name; } - OUString getAppName() const { return app_name; } + const OUString& getAppName() const { return app_name; } }; #endif |