accessibility/source/extended/textwindowaccessibility.cxx | 18 ++++++-------- 1 file changed, 8 insertions(+), 10 deletions(-)
New commits: commit 73cb99d5ea12b76c6cfbc498c58c4ed133b94c5e Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Nov 21 09:01:53 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Nov 21 11:44:00 2024 +0100 Related: cid#1364016 Missing move assignment operator Change-Id: I186718f4e74ca3a77d92a62358d6007a1f6fd7fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176903 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index 19867b61fcfb..8068d118ed9f 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1043,20 +1043,18 @@ void Document::retrieveRunAttributesImpl( tPropValMap aRunAttrSeq; if ( pColor ) { - css::beans::PropertyValue aPropVal; - aPropVal.Name = "CharColor"; - aPropVal.Handle = -1; - aPropVal.Value = mapFontColor( pColor->GetColor() ); - aPropVal.State = css::beans::PropertyState_DIRECT_VALUE; + css::beans::PropertyValue aPropVal{ + "CharColor", -1, + mapFontColor(pColor->GetColor()), + css::beans::PropertyState_DIRECT_VALUE}; aRunAttrSeq[ aPropVal.Name ] = aPropVal; } if ( pWeight ) { - css::beans::PropertyValue aPropVal; - aPropVal.Name = "CharWeight"; - aPropVal.Handle = -1; - aPropVal.Value = mapFontWeight( pWeight->getFontWeight() ); - aPropVal.State = css::beans::PropertyState_DIRECT_VALUE; + css::beans::PropertyValue aPropVal{ + "CharWeight", -1, + mapFontWeight(pWeight->getFontWeight()), + css::beans::PropertyState_DIRECT_VALUE}; aRunAttrSeq[ aPropVal.Name ] = aPropVal; } if ( !RequestedAttributes.hasElements() )