chart2/source/view/axes/VCartesianGrid.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e962819af8b9e19c651103dd288e60658dfd76e5
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Nov 10 18:32:42 2022 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Nov 11 10:30:26 2022 +0100

    Drop a counterproductive top-level const
    
    ...that was apparently left by accident by
    11c4ec15f13bbcc1b7a85e966519d75e64f62c4a "use more concrete types in chart2,
    Axis", thwarting the use of std::move here.
    
    (I came across this code with an upcoming loplugin:constmove that flags
    suspicious uses of std::move involving const-qualified types.)
    
    Change-Id: I75ebadf96044ceb247f232ad9f2d27fe643a7af6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142558
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/chart2/source/view/axes/VCartesianGrid.cxx 
b/chart2/source/view/axes/VCartesianGrid.cxx
index 07c51d4a23b9..6cf68d0700eb 100644
--- a/chart2/source/view/axes/VCartesianGrid.cxx
+++ b/chart2/source/view/axes/VCartesianGrid.cxx
@@ -149,7 +149,7 @@ static void addLine3D( 
std::vector<std::vector<css::drawing::Position3D>>& rPoin
 }
 
 VCartesianGrid::VCartesianGrid( sal_Int32 nDimensionIndex, sal_Int32 
nDimensionCount
-                               , const std::vector< Reference< 
beans::XPropertySet > >  aGridPropertiesList )
+                               , std::vector< Reference< beans::XPropertySet > 
>  aGridPropertiesList )
             : VAxisOrGridBase( nDimensionIndex, nDimensionCount )
             , m_aGridPropertiesList( std::move(aGridPropertiesList) )
 {

Reply via email to