diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-25 19:21:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-26 07:16:07 +0100 |
commit | c54d34f70819c5928fe30585e86d744eda4a254a (patch) | |
tree | 81672bb2fd4c95cb09a6ed14197c8a0a8655dcb5 /include/canvas | |
parent | 09895ae4963850c05d7a315599195dd177f13b06 (diff) |
loplugin:passstuffbyref improved return in canvas and svtools
and for now, ignore methods with params so we don't fall into the trap
of thinking that calls to methods like:
Bar& foo(Bar &p) { return p; }
can be converted from
Bar f() { return foo(Bar()); }
to
Bar const & f() { return foo(Bar()); }
Change-Id: Ia3795eb2baf353cb6bec4ebf40451f2789d66ad7
Reviewed-on: https://gerrit.libreoffice.org/47034
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/canvas')
-rw-r--r-- | include/canvas/canvastools.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx index a16da1871c79..c21465d13496 100644 --- a/include/canvas/canvastools.hxx +++ b/include/canvas/canvastools.hxx @@ -329,7 +329,7 @@ namespace canvas Use this method for dead-simple bitmap implementations, that map all their formats to 8888 RGBA color. */ - CANVASTOOLS_DLLPUBLIC css::uno::Reference< css::rendering::XIntegerBitmapColorSpace> getStdColorSpace(); + CANVASTOOLS_DLLPUBLIC css::uno::Reference< css::rendering::XIntegerBitmapColorSpace> const & getStdColorSpace(); /** Return a color space for a default RGB integer format @@ -337,7 +337,7 @@ namespace canvas that map all their formats to 8888 RGB color (the last byte is unused). */ - CANVASTOOLS_DLLPUBLIC css::uno::Reference< css::rendering::XIntegerBitmapColorSpace> getStdColorSpaceWithoutAlpha(); + CANVASTOOLS_DLLPUBLIC css::uno::Reference< css::rendering::XIntegerBitmapColorSpace> const & getStdColorSpaceWithoutAlpha(); /** Return a memory layout for a default RGBA integer format |