/* -*- 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 . */ #include #include namespace { struct rtlMemorySingleton { rtlMemorySingleton() { rtl_memory_init(); } ~rtlMemorySingleton() { rtl_memory_fini(); } }; class theMemorySingleton : public rtl::Static{}; } void ensureMemorySingleton() { theMemorySingleton::get(); } namespace { struct rtlCacheSingleton { rtlCacheSingleton() { rtl_cache_init(); } ~rtlCacheSingleton() { rtl_cache_fini(); } }; class theCacheSingleton : public rtl::Static{}; } void ensureCacheSingleton() { theCacheSingleton::get(); } namespace { struct rtlArenaSingleton { rtlArenaSingleton() { rtl_arena_init(); } ~rtlArenaSingleton() { rtl_arena_fini(); } }; class theArenaSingleton : public rtl::Static{}; } void ensureArenaSingleton() { theArenaSingleton::get(); } namespace { struct rtlLocaleSingleton { rtlLocaleSingleton() { rtl_locale_init(); } ~rtlLocaleSingleton() { rtl_locale_fini(); } }; class theLocaleSingleton : public rtl::Static{}; } void ensureLocaleSingleton() { theLocaleSingleton::get(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ption> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2013-03-28Move ScFormulaCell into its own header source files: formulacell.?xx.Kohei Yoshida
2012-12-04re-base on ALv2 code. Includes:Michael Meeks
2012-10-12mark lcl_ functions static or rename them if they are not local at allLuboš Luňák
2012-07-02Remove unused definesThomas Arnhold
2012-06-09Remove superfluous include commentsThomas Arnhold
2012-05-10WaE: unsafe mix of bool and sal_BoolCaolán McNamara
2012-02-07Have SfxItemSet::HasItem take an optional pointer-to-pointer.Kohei Yoshida
2012-02-06I think it's time we had a real method for this...Kohei Yoshida
2011-11-27remove include of pch header from scNorbert Thiebaud
2011-11-23Reducing header dependency on markdata.hxx.Kohei Yoshida
2011-10-18WaE: unsafe mix of type 'bool' and type 'sal_Bool' in operationTor Lillqvist
2011-08-29tweak for changeCaolán McNamara
2011-08-26String to rtl::OUString.Kohei Yoshida
2011-08-15ByteString::IsNumericAscii->comphelper::string::isAsciiDecimalStringCaolán McNamara
2011-07-20Get rid of SvULongs in calcMaciej Rumianowski
2011-05-27Replace DBG_* with OSL_* in sc/source/uiJacek Wolszczak
2011-03-10Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Kohei Yoshida
2011-03-02Remove bogus comments.Guillaume Poussel
2011-03-02Move DBG_ERROR to OSL_FAILThomas Arnhold
2011-02-05Some cppcheck cleaningJulien Nabet
2011-01-17removetooltypes01: #i112600# remove tooltypes from scMikhail Voytenko
2010-11-24Remove the preprocessor guard for sheet protection options.Kohei Yoshida
2010-10-13Add vim/emacs modelines to all source filesSebastian Spaeth
2010-10-01Finished removing //CHINA comments and odd dead code from sc/source/ui/*Luke Symes
2010-09-16calc-selection-fixed-cursor.diff: MigratedKohei Yoshida
2010-09-16calc-jump-on-formula-ref-sc.diff: MigratedKohei Yoshida
2010-07-10CWS changehid: #i111874#: change code to support HelpIds as byte stringsMathias Bauer
2010-06-04changehid: #i111874# remove SmartId, make HID of type rtl::OString, fill in d...Philipp Lohmann [pl]
2010-03-11autorecovery: merged changes from m74. Still need to find out how to re-do tw...Frank Schoenheit [fs]
2010-02-17CWS-TOOLING: integrate CWS changefileheader2Vladimir Glazunov
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun Mi...Jens-Heiner Rechtien
2010-01-08autorecovery: merge after rebase to m69Frank Schoenheit [fs]
2010-01-08#i107450#: build all other modules with new editeng libMathias Bauer
2009-12-15autorecovery: SfxViewFrame's SfxFrame is a reference now, no pointer (it can ...Frank Schoenheit [fs]
2009-11-30[CWS autorecovery] forgot to remove some includesFrank Schoenheit [fs]
2009-11-30[CWS autorecovery] merged SfxTopViewFrame into SfxViewFrameFrank Schoenheit [fs]
2009-11-02#i106421#: create new cui resource fileMathias Bauer
2009-10-16#i103496#: split svtools; improve ConfitItemsMathias Bauer
2009-07-15CWS-TOOLING: integrate CWS dr68Ivo Hinkelmann
2009-07-01CWS-TOOLING: integrate CWS scsheetprotection02Release Engineers
2009-05-15CWS-TOOLING: integrate CWS calc49Jens-Heiner Rechtien
2009-01-08CWS-TOOLING: integrate CWS frmdlgJens-Heiner Rechtien
2008-12-11CWS-TOOLING: integrate CWS calc47Rüdiger Timm
2008-05-14INTEGRATION: CWS koheiformula01 (1.38.68); FILE MERGEDVladimir Glazounov
2008-04-11INTEGRATION: CWS changefileheader (1.38.86); FILE MERGEDRüdiger Timm
2008-01-30#i85399# prevent warnings (patch by pjanik).Rüdiger Timm
2008-01-29INTEGRATION: CWS kohei01 (1.36.38); FILE MERGEDVladimir Glazounov
2007-11-21INTEGRATION: CWS sheetzoom (1.35.50); FILE MERGEDIvo Hinkelmann
2007-09-27INTEGRATION: CWS calc44 (1.34.66); FILE MERGEDJens-Heiner Rechtien