/* -*- 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/. */ #ifndef INCLUDED_COMPHELPER_PROPERTYVALUE_HXX #define INCLUDED_COMPHELPER_PROPERTYVALUE_HXX #include #include #include namespace comphelper { /** * Creates a beans::PropertyValue easily, i.e. you can write: * * function(comphelper::makePropertyValue("Foo", nBar)); * * instead of writing 3 extra lines to set the name and value of the beans::PropertyValue. */ template css::beans::PropertyValue makePropertyValue(const OUString& rName, T&& rValue) { css::beans::PropertyValue aValue; aValue.Name = rName; aValue.Value = css::uno::toAny(std::forward(rValue)); return aValue; } } #endif // INCLUDED_COMPHELPER_PROPERTYVALUE_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ opia/zeta-7-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/jvmfwk
AgeCommit message (Expand)Author
2018-04-12Keep strings alive again as necessaryStephan Bergmann
2018-04-11new loplugin:unusedvariablemoreNoel Grandin
2018-03-28Don't pass empty option to JNI_CreateJavaVMStephan Bergmann
2018-03-27Improve error reportingStephan Bergmann
2018-03-25Use for-range loops in some modulesJulien Nabet
2018-02-15Find Java 9 with the new registry keys on WindowsStephan Bergmann
2018-02-01jvmfwk: MSVC: pragma warning: make more specific, remove obsoleteMike Kaganski
2018-01-23More loplugin:cstylecast on WindowsStephan Bergmann
2018-01-20More loplugin:cstylecast on macOSStephan Bergmann
2018-01-12More loplugin:cstylecast: jvmfwkStephan Bergmann
2017-12-19inline use-once typedefsNoel Grandin
2017-11-23loplugin:simplifybool for negation of comparison operatorNoel Grandin
2017-11-14loplugin:flatten loosen conditionNoel Grandin
2017-11-13Fix typosAndrea Gelmini
2017-11-01loplugin:finalclasses in h*,i*,j*Noel Grandin
2017-10-31loplugin:constantparam in i18nlangtagNoel Grandin
2017-10-26loplugin:constmethod in svlNoel Grandin
2017-10-23loplugin:includeform: jvmfwkStephan Bergmann
2017-10-13Use loop ranges in jvmfwkJulien Nabet
2017-10-05Rename and move SAL_U/W to o3tl::toU/WMike Kaganski
2017-09-30Use SAL_W/SAL_U instead of reinterpret_cast btwn wchar_t* and sal_Unicode*Mike Kaganski
2017-09-30Use explicit function names for fooA/fooW WinAPI; prefer fooWMike Kaganski
2017-09-18Some more WIN32_LEAN_AND_MEANMike Kaganski
2017-09-11clang-tidy modernize-use-emplace in hwpfilter..lotuswordproNoel Grandin
2017-08-28tdf#100501: Fix thinkoStephan Bergmann
2017-08-28tdf#100501: Adapt to Java 9 (at least on Linux x86-64)Stephan Bergmann
2017-08-17remove unnecessary use of OUString::getStrNoel Grandin
2017-08-13log details of exception when we catch std::exceptionNoel Grandin
2017-08-11convert std::map::insert to std::map::emplaceNoel Grandin