Kaydet (Commit) 7e0f06f4 authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter, writerperfect: various small cleanups

Change-Id: Iea26b73bd91ed178cc4f2279c23246d79f48a6be
Reviewed-on: https://gerrit.libreoffice.org/54063Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 5c9ae702
......@@ -242,7 +242,7 @@ static void cloneAndDeduplicateSprm(std::pair<Id, RTFValue::Pointer_t> const& rS
}
/// Extracts the list level matching nLevel from pAbstract.
static RTFValue::Pointer_t getListLevel(RTFValue::Pointer_t pAbstract, int nLevel)
static RTFValue::Pointer_t getListLevel(const RTFValue::Pointer_t& pAbstract, int nLevel)
{
for (const auto& rPair : pAbstract->getSprms())
{
......@@ -287,7 +287,7 @@ void RTFSprms::deduplicateList(const std::map<int, int>& rInvalidListLevelFirstI
eraseNestedAttribute(*this, NS_ooxml::LN_CT_PPrBase_ind, NS_ooxml::LN_CT_Ind_firstLine);
}
void RTFSprms::duplicateList(RTFValue::Pointer_t pAbstract)
void RTFSprms::duplicateList(const RTFValue::Pointer_t& pAbstract)
{
int nLevel = 0;
RTFValue::Pointer_t pLevelId
......
......@@ -58,7 +58,7 @@ public:
/// (yes, really; that's what Word does).
RTFSprms cloneAndDeduplicate(RTFSprms& rReference) const;
/// Inserts default values to override attributes of pAbstract.
void duplicateList(RTFValue::Pointer_t pAbstract);
void duplicateList(const RTFValue::Pointer_t& pAbstract);
/// Removes duplicated values based on in-list properties.
void deduplicateList(const std::map<int, int>& rInvalidListLevelFirstIndents);
std::size_t size() const { return m_pSprms->size(); }
......
......@@ -221,7 +221,7 @@ IMPL_LINK_NOARG(EPUBExportDialog, OKClickHdl, weld::Button&, void)
m_xDialog->response(RET_OK);
}
EPUBExportDialog::~EPUBExportDialog() {}
EPUBExportDialog::~EPUBExportDialog() = default;
} // namespace writerperfect
......
......@@ -202,7 +202,6 @@ private:
XMLRubyContext::XMLRubyContext(XMLImport& rImport,
const librevenge::RVNGPropertyList& rPropertyList)
: XMLImportContext(rImport)
, m_sRubyText()
{
// Inherit properties from parent.
librevenge::RVNGPropertyList::Iter itProp(rPropertyList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment