diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-12-14 16:49:45 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-12-14 16:52:13 +0100 |
commit | 700e1e7fda6f0a415adbbd5bb190efa5c7435c4f (patch) | |
tree | 0da437b43791ee7bc61eec21f13b7ecf4a92be7b /editeng | |
parent | 2816ac4ad01874203efdbf9961ca2c22cbd94a3c (diff) |
editeng: error: "remove_const_t" is not a member of "std"
Manual type inference was an interesting oxymoronic curiosity that
can probably only exist in C++, but it turns out our baseline
compilers don't even support it yet.
Change-Id: I3e9ac14e69c2c1288fa58a4279ede3202952b2fa
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 448c6bafaf66..14b9bd3aab6b 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -316,7 +316,7 @@ ErrCode ImpEditEngine::WriteRTF( SvStream& rOutput, EditSelection aSel ) nWhich = EE_CHAR_FONTINFO_CTL; auto const nFonts(aEditDoc.GetItemPool().GetItemCount2(nWhich)); - for (std::remove_const_t<decltype(nFonts)> i = 0; i < nFonts; ++i) + for (sal_uInt32 i = 0; i < nFonts; ++i) { SvxFontItem const*const pFontItem = static_cast<const SvxFontItem*>( aEditDoc.GetItemPool().GetItem2(nWhich, i)); @@ -396,7 +396,7 @@ ErrCode ImpEditEngine::WriteRTF( SvStream& rOutput, EditSelection aSel ) aColorList.push_back(rDefault.GetValue()); } auto const nColors(aEditDoc.GetItemPool().GetItemCount2(EE_CHAR_COLOR)); - for (std::remove_const_t<decltype(nColors)> i = 0; i < nColors; ++i) + for (sal_uInt32 i = 0; i < nColors; ++i) { SvxColorItem const*const pColorItem(aEditDoc.GetItemPool().GetItem2(EE_CHAR_COLOR, i)); if (pColorItem && pColorItem->GetValue() != COL_AUTO) // may be null! |