diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-05 08:34:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-05 09:22:51 +0200 |
commit | 17a2c9e8e2361de27013a25e51f3a3ca729f1b31 (patch) | |
tree | 1c89bc104e5630fb71ff0a5b12c464ca2aceebc3 /starmath | |
parent | 8fa4b0429b514c0d696ebfc2e47418292d7ec367 (diff) |
clang-tidy performance-unnecessary-value-param
Change-Id: I6ed8c54c7c45931d91709cc818f2483c70197192
Reviewed-on: https://gerrit.libreoffice.org/38400
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/uiobject.cxx | 4 | ||||
-rw-r--r-- | starmath/source/uiobject.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/uiobject.cxx b/starmath/source/uiobject.cxx index d505ed9d95eb..51b0733ff545 100644 --- a/starmath/source/uiobject.cxx +++ b/starmath/source/uiobject.cxx @@ -12,7 +12,7 @@ #include "ElementsDockingWindow.hxx" -ElementUIObject::ElementUIObject(VclPtr<SmElementsControl> xElementSelector, +ElementUIObject::ElementUIObject(const VclPtr<SmElementsControl>& xElementSelector, const OUString& rID): mxElementsSelector(xElementSelector), maID(rID) @@ -52,7 +52,7 @@ void ElementUIObject::execute(const OUString& rAction, } } -ElementSelectorUIObject::ElementSelectorUIObject(VclPtr<SmElementsControl> xElementSelector): +ElementSelectorUIObject::ElementSelectorUIObject(const VclPtr<SmElementsControl>& xElementSelector): WindowUIObject(xElementSelector), mxElementsSelector(xElementSelector) { diff --git a/starmath/source/uiobject.hxx b/starmath/source/uiobject.hxx index 004f1ab79dd1..ecfef8abe627 100644 --- a/starmath/source/uiobject.hxx +++ b/starmath/source/uiobject.hxx @@ -24,7 +24,7 @@ private: public: - ElementUIObject(VclPtr<SmElementsControl> xElementSelector, + ElementUIObject(const VclPtr<SmElementsControl>& xElementSelector, const OUString& rID); virtual StringMap get_state() override; @@ -43,7 +43,7 @@ private: public: - explicit ElementSelectorUIObject(VclPtr<SmElementsControl> xElementSelector); + explicit ElementSelectorUIObject(const VclPtr<SmElementsControl>& xElementSelector); virtual StringMap get_state() override; |