/* -*- 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/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_COMPHELPER_NEWARRAY_HXX #define INCLUDED_COMPHELPER_NEWARRAY_HXX #include #include #include namespace comphelper { template T * newArray_null(size_t const n) throw() { if (((::std::numeric_limits::max)() / sizeof(T)) <= n) { return 0; } return new (::std::nothrow) T[n]; } } // namespace comphelper #endif // INCLUDED_COMPHELPER_NEWARRAY_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ice-5-1'>distro/cib/libreoffice-5-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
04f108060db'>Convert code that calls OUString::getStr()[] to use the [] operator /lo/core/commit/sfx2/source/doc/docstoragemodifylistener.cxx?h=cp-24.04.3-4&id=a883783c2a1b0e7a8ee5b46387d1e1e3bc5e19bd'>a883783c2a1b0e7a8ee5b46387d1e1e3bc5e19bd (diff)
AgeCommit message (Expand)Author
2013-12-17Keep using component_getImplementationEnvironment in extensionsStephan Bergmann
Noel Grandin
2013-09-26typo fixes in commentsAndras Timar
2013-09-17convert FRAMEWORK module from String to OUStringNoel Grandin
2013-09-14Replace char[] by OUStringBuffer/OUStringJulien Nabet
2013-09-09One more case of explicit OUString construction needed for return statementTor Lillqvist
2013-09-09Bin some uses of the stupid DECLARE_ASCII macroTor Lillqvist
2013-09-09Bin unused remains of framework's own "debug framework"Tor Lillqvist
2013-09-08Use SAL_INFO instead of framework's own LOG_WARNINGTor Lillqvist
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák
2013-07-23Convert framework::AcceleratorConfigurationReader to WeakImplHelperNoel Grandin
SolarMutex does not belong into the URE interface