Tahoma -> DejaVu Sans for reproducible tests
[LibreOffice.git] / sal / rtl / alloc_fini.cxx
blobba798452dedf56bfb1bcd817aaed25b15b7c0ae8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <rtllifecycle.h>
22 namespace
24 struct rtlCacheSingleton
26 rtlCacheSingleton()
28 rtl_cache_init();
30 ~rtlCacheSingleton()
32 rtl_cache_fini();
35 rtlCacheSingleton& theCacheSingleton()
37 static rtlCacheSingleton SINGLETON;
38 return SINGLETON;
42 void ensureCacheSingleton()
44 theCacheSingleton();
47 namespace
49 struct rtlArenaSingleton
51 rtlArenaSingleton()
53 rtl_arena_init();
55 ~rtlArenaSingleton()
57 rtl_arena_fini();
60 rtlArenaSingleton& theArenaSingleton()
62 static rtlArenaSingleton SINGLETON;
63 return SINGLETON;
67 void ensureArenaSingleton()
69 theArenaSingleton();
72 namespace
74 struct rtlLocaleSingleton
76 rtlLocaleSingleton()
78 rtl_locale_init();
80 ~rtlLocaleSingleton()
82 rtl_locale_fini();
85 rtlLocaleSingleton& theLocaleSingleton()
87 static rtlLocaleSingleton SINGLETON;
88 return SINGLETON;
92 void ensureLocaleSingleton()
94 theLocaleSingleton();
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */