/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #pragma once #include #include #include namespace o3tl { // removes duplicated elements in a vector template void remove_duplicates(std::vector& rVector) { std::unordered_set aSet; auto aEnd = std::copy_if(rVector.begin(), rVector.end(), rVector.begin(), [&aSet](T const& rElement) { return aSet.insert(rElement).second; }); rVector.erase(aEnd, rVector.end()); } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ eta-24-2'>distro/allotropia/zeta-24-2 LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-03-11 13:26:22 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-03-11 13:36:28 +0100
commit3303c7ab6336b347ea449b10cb39339fe8ebdfdb (patch)
tree9fdfb43b81236225bb77af469a9514059d389184
parent669ac70c0f1bdbd996953052305ecfab596aa42e (diff)
update translations for 6.4.2 rc2 libreoffice-6-4-2
and force-fix errors using pocheck Change-Id: I0462e8a1db3c2d1df87ac6eaec555f91b4e680c1 (cherry picked from commit 27997432892d8cb1f8f8226194d0a637851ad13d)