/svtools/uiconfig/

/go.suokunlong.cn:88/cgit/lo/core/atom/include/unotools/sharedunocomponent.hxx?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
path: root/include/unotools/sharedunocomponent.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-07 16:03:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-08 09:20:23 +0100
commit6d6a143913603b040c10a5db83c2103557899011 (patch)
tree448ad1fbf51ec0d72ed8173269a2ee8515e9f0c3 /include/rtl/string.hxx
parentc4fc1dda75fe7aefce50d77ad05319cd143e6e25 (diff)
Address some of the sprintf in vcl/source/fontsubset/cff.cxx
...(which cause -Werror,-Wdeprecated-declarations with macOS 13 SDK), by making CffSubsetterContext::getString, and in turn CffSubsetterContext::getGlyphName, return OString. Which in turn required adding rtl::OStringConstExpr and OString::unacquired counterparts of rtl/ustring.hxx functionality to rtl/string.hxx. (It's not quite clear to me whether the nMaxLen clipping in CffSubsetterContext::getString was only there to avoid overflow of the-- somewhat arbitrarily sized?---static aNameBuf, so could go now, or rather served as a more general safety measure to not read past the mpReadPtr buffer end and should thus remain. Hence, I added a TODO comment for now.) Change-Id: I473d5a54a4be5b02917e197391e4f0982dcf690c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142412 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>