include/editeng/brushitem.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3eba3f6c22b9de02b22a2e3fe3d348940db81e13
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Jun 29 12:05:34 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Jun 29 12:55:38 2023 +0200

    getComplexColor: return a const reference, to avoid an extra copy
    
    Change-Id: I28ff81c08be4e18169fe8b8fcd67818ea5319d9b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153737
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/include/editeng/brushitem.hxx b/include/editeng/brushitem.hxx
index b995c7fa0637..26e5458bc5bf 100644
--- a/include/editeng/brushitem.hxx
+++ b/include/editeng/brushitem.hxx
@@ -91,7 +91,7 @@ public:
     Color&          GetColor()                      { return aColor; }
     void            SetColor( const Color& rCol)    { aColor = rCol; }
 
-    model::ComplexColor getComplexColor() const
+    const model::ComplexColor& getComplexColor() const
     {
         return maComplexColor;
     }

Reply via email to