diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-11-12 13:14:23 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-11-12 13:18:36 +0100 |
commit | 7a65f43709b2945cca935158c72c28dc77ba65b2 (patch) | |
tree | 28e61db6283c767b9b8e7c2cd0538c8d67c65e3e | |
parent | e467d936452bd428fe71339803fa22eb0a5f31e2 (diff) |
adapt to Sequence::operator[] non-const removal
5054202e71605cb4f10c798be76679 passed Gerrit before the changes
and I submitted it only later after the changes.
Change-Id: I251f50f417964f23e5e91aae6696df609fee9e14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125098
Tested-by: Luboš Luňák <l.lunak@collabora.com>
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 5991df78fddb..6c21a5b474f1 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -2550,12 +2550,13 @@ SAL_CALL VCLXToolkit::finishTrackingFontMappingUse() SolarMutexGuard aSolarGuard; OutputDevice::FontMappingUseData data = OutputDevice::FinishTrackingFontMappingUse(); css::uno::Sequence<css::awt::XFontMappingUseItem> ret( data.size()); + css::awt::XFontMappingUseItem* retData = ret.getArray(); for( size_t i = 0; i < data.size(); ++i ) { - ret[ i ].originalFont = data[ i ].mOriginalFont; - ret[ i ].usedFonts = comphelper::arrayToSequence<OUString,OUString> + retData[ i ].originalFont = data[ i ].mOriginalFont; + retData[ i ].usedFonts = comphelper::arrayToSequence<OUString,OUString> (data[ i ].mUsedFonts.data(), data[ i ].mUsedFonts.size()); - ret[ i ].count = data[ i ].mCount; + retData[ i ].count = data[ i ].mCount; } return ret; } |