Kaydet (Commit) 4b7c5222 authored tarafından Miklos Vajna's avatar Miklos Vajna

xmlsecurity pdf verify: push_back -> emplace_back

And a few other similar small cleanups.

Change-Id: I91c992f33f2166d1cf27cbc9def1b69965040658
Reviewed-on: https://gerrit.libreoffice.org/39928Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 85ff2eaf
......@@ -40,7 +40,7 @@ class VCL_DLLPUBLIC PDFElement
{
public:
virtual bool Read(SvStream& rStream) = 0;
virtual ~PDFElement() { }
virtual ~PDFElement() = default;
};
/// Indirect object: something with a unique ID.
......
......@@ -103,7 +103,7 @@ OUString RtfExport_getImplementationName()
return OUString(IMPL_NAME_RTFEXPORT);
}
uno::Sequence< OUString > SAL_CALL RtfExport_getSupportedServiceNames() throw()
uno::Sequence< OUString > SAL_CALL RtfExport_getSupportedServiceNames() noexcept
{
return uno::Sequence< OUString > { "com.sun.star.document.ExportFilter" };
}
......
......@@ -61,7 +61,7 @@ public:
};
OUString RtfExport_getImplementationName();
css::uno::Sequence<OUString> SAL_CALL RtfExport_getSupportedServiceNames() throw();
css::uno::Sequence<OUString> SAL_CALL RtfExport_getSupportedServiceNames() noexcept;
/// @throws css::uno::Exception
css::uno::Reference<css::uno::XInterface> SAL_CALL RtfExport_createInstance(const css::uno::Reference<css::uno::XComponentContext>& xCtx);
......
......@@ -3352,9 +3352,8 @@ RTFSprms RTFFrame::getSprms()
NS_ooxml::LN_CT_FramePr_lines
};
for (int i = 0; i < int(SAL_N_ELEMENTS(pNames)); ++i)
for (Id nId : pNames)
{
Id nId = pNames[i];
RTFValue::Pointer_t pValue;
switch (nId)
......
......@@ -28,7 +28,7 @@ public:
virtual css::uno::Sequence<sal_Int8> getSHA256Thumbprint() = 0;
protected:
~Certificate() throw () {}
~Certificate() noexcept = default;
};
}
......
......@@ -378,7 +378,7 @@ bool ValidateSignature(SvStream& rStream, vcl::filter::PDFObjectElement* pSignat
continue;
}
size_t nByteRangeLength = pNumber->GetValue();
aByteRanges.push_back(std::make_pair(nByteRangeOffset, nByteRangeLength));
aByteRanges.emplace_back(nByteRangeOffset, nByteRangeLength);
}
// Detect if the byte ranges don't cover everything, but the signature itself.
......
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