Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4e354737
Kaydet (Commit)
4e354737
authored
Şub 24, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove boost/shared_ptr foo
Change-Id: Id208712f80e820f23d898359a4d58297a09e5a77
üst
d01f2531
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
106 deletions
+1
-106
Library_slideshow.mk
slideshow/Library_slideshow.mk
+0
-6
precompiled_slideshow.hxx
slideshow/inc/pch/precompiled_slideshow.hxx
+0
-5
manifest.txt
slideshow/manifest.txt
+1
-1
shapeimporter.cxx
slideshow/source/engine/shapes/shapeimporter.cxx
+0
-1
sp_debug.cxx
slideshow/source/engine/sp_debug.cxx
+0
-93
No files found.
slideshow/Library_slideshow.mk
Dosyayı görüntüle @
4e354737
...
...
@@ -150,10 +150,4 @@ $(eval $(call gb_Library_add_exception_objects,slideshow,\
slideshow/source/engine/wakeupevent \
))
ifneq ($(strip $(debug)$(DEBUG)),)
$(eval $(call gb_Library_add_exception_objects,slideshow,\
slideshow/source/engine/sp_debug \
))
endif
# vim: set noet sw=4 ts=4:
slideshow/inc/pch/precompiled_slideshow.hxx
Dosyayı görüntüle @
4e354737
...
...
@@ -52,13 +52,8 @@
#include <typeinfo>
#include <utility>
#include <vector>
#include <boost/enable_shared_from_this.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/mem_fn.hpp>
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <osl/diagnose.h>
#include <osl/diagnose.hxx>
#include <osl/doublecheckedlocking.h>
...
...
slideshow/manifest.txt
Dosyayı görüntüle @
4e354737
...
...
@@ -43,7 +43,7 @@ Coding style:
- header guards follow this scheme: INCLUDED_SLIDESHOW_<CLASSNAME>_HXX
- module-external headers, and system headers are included like this:
#include <module/header.hxx>
or #include <boost/shared_ptr.hpp>.
#include <module/header.hxx>
.
module-internal headers are included like this:
#include "header.hxx"
No external header guards are used in cxx files
...
...
slideshow/source/engine/shapes/shapeimporter.cxx
Dosyayı görüntüle @
4e354737
...
...
@@ -51,7 +51,6 @@
#include "tools.hxx"
#include "slideshowcontext.hxx"
#include <boost/shared_ptr.hpp>
#include <memory>
using
namespace
com
::
sun
::
star
;
...
...
slideshow/source/engine/sp_debug.cxx
deleted
100644 → 0
Dosyayı görüntüle @
d01f2531
/* -*- 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 .
*/
// sp_collector.cpp
// Copyright (c) 2002, 2003 Peter Dimov
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
#include <boost/assert.hpp>
#include <boost/detail/lightweight_mutex.hpp>
#include <boost/shared_ptr.hpp>
#include <canvas/debug.hxx>
#include <cstdlib>
#include <map>
#include <memory>
#include <deque>
#include <iostream>
typedef
std
::
map
<
void
const
*
,
std
::
pair
<
void
*
,
size_t
>
>
map_type
;
static
map_type
&
get_map
()
{
static
map_type
m
;
return
m
;
}
typedef
boost
::
detail
::
lightweight_mutex
mutex_type
;
static
mutex_type
&
get_mutex
()
{
static
mutex_type
m
;
return
m
;
}
static
void
*
init_mutex_before_main
=
&
get_mutex
();
// debug hooks
namespace
boost
{
void
sp_scalar_constructor_hook
(
void
*
px
,
std
::
size_t
size
,
void
*
pn
)
{
#ifdef BOOST_HAS_THREADS
mutex_type
::
scoped_lock
lock
(
get_mutex
());
#endif
get_map
()[
pn
]
=
std
::
make_pair
(
px
,
size
);
}
void
sp_scalar_destructor_hook
(
void
*
,
std
::
size_t
,
void
*
pn
)
{
#ifdef BOOST_HAS_THREADS
mutex_type
::
scoped_lock
lock
(
get_mutex
());
#endif
get_map
().
erase
(
pn
);
}
}
// namespace boost
#endif // defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment