diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 4 | ||||
-rw-r--r-- | desktop/source/lib/lokclipboard.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 60e025e3e371..156176ba023d 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5883,9 +5883,9 @@ static char* lo_getFilterTypes(LibreOfficeKit* pThis) uno::Sequence<beans::PropertyValue> aValues; if (xTypeDetection->getByName(rType) >>= aValues) { - auto it = std::find_if(aValues.begin(), aValues.end(), [](const beans::PropertyValue& rValue) { return rValue.Name == "MediaType"; }); + auto it = std::find_if(std::cbegin(aValues), std::cend(aValues), [](const beans::PropertyValue& rValue) { return rValue.Name == "MediaType"; }); OUString aValue; - if (it != aValues.end() && (it->Value >>= aValue) && !aValue.isEmpty()) + if (it != std::cend(aValues) && (it->Value >>= aValue) && !aValue.isEmpty()) { auto typeNode = aJson.startNode(rType.toUtf8().getStr()); aJson.put("MediaType", aValue.toUtf8()); diff --git a/desktop/source/lib/lokclipboard.cxx b/desktop/source/lib/lokclipboard.cxx index 193c74472ba4..41f46e854164 100644 --- a/desktop/source/lib/lokclipboard.cxx +++ b/desktop/source/lib/lokclipboard.cxx @@ -219,11 +219,11 @@ uno::Sequence<datatransfer::DataFlavor> SAL_CALL LOKTransferable::getTransferDat sal_Bool SAL_CALL LOKTransferable::isDataFlavorSupported(const datatransfer::DataFlavor& rFlavor) { - return std::find_if(m_aFlavors.begin(), m_aFlavors.end(), + return std::find_if(std::cbegin(m_aFlavors), std::cend(m_aFlavors), [&rFlavor](const datatransfer::DataFlavor& i) { return i.MimeType == rFlavor.MimeType && i.DataType == rFlavor.DataType; }) - != m_aFlavors.end(); + != std::cend(m_aFlavors); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |