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
819fd244
Kaydet (Commit)
819fd244
authored
Tem 31, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
comphelper: replace boost::function with std::function
Change-Id: I042c97d8472c3afceffba36808687f382571e6c2
üst
a713fb5e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
scopeguard.cxx
comphelper/source/misc/scopeguard.cxx
+1
-1
scopeguard.hxx
include/comphelper/scopeguard.hxx
+3
-2
servicedecl.hxx
include/comphelper/servicedecl.hxx
+7
-6
undo.cxx
svl/source/undo/undo.cxx
+1
-0
No files found.
comphelper/source/misc/scopeguard.cxx
Dosyayı görüntüle @
819fd244
...
...
@@ -52,7 +52,7 @@ ScopeGuard::~ScopeGuard()
void
ScopeGuard
::
dismiss
()
{
m_func
.
clear
()
;
m_func
=
nullptr
;
}
FlagGuard
::~
FlagGuard
()
...
...
include/comphelper/scopeguard.hxx
Dosyayı görüntüle @
819fd244
...
...
@@ -21,7 +21,8 @@
#define INCLUDED_COMPHELPER_SCOPEGUARD_HXX
#include <comphelper/comphelperdllapi.h>
#include <boost/function.hpp>
#include <functional>
namespace
comphelper
{
...
...
@@ -53,7 +54,7 @@ private:
ScopeGuard
(
const
ScopeGuard
&
)
SAL_DELETED_FUNCTION
;
ScopeGuard
&
operator
=
(
const
ScopeGuard
&
)
SAL_DELETED_FUNCTION
;
::
boost
::
function0
<
void
>
m_func
;
// preferring portable syntax
::
std
::
function
<
void
()
>
m_func
;
exc_handling
const
m_excHandling
;
};
...
...
include/comphelper/servicedecl.hxx
Dosyayı görüntüle @
819fd244
...
...
@@ -25,22 +25,23 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <uno/environment.h>
#include <boost/noncopyable.hpp>
#include <boost/function.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/repetition.hpp>
#include <boost/preprocessor/seq/enum.hpp>
#include <functional>
namespace
comphelper
{
namespace
service_decl
{
class
ServiceDecl
;
namespace
detail
{
typedef
::
boost
::
function3
<
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
/* return */
,
ServiceDecl
const
&
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
,
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
&
>
CreateFuncF
;
typedef
::
std
::
function
<
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
/* return */
(
ServiceDecl
const
&
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
,
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
&
)
>
CreateFuncF
;
}
/** Class to declare a service implementation. There is no need to implement
...
...
svl/source/undo/undo.cxx
Dosyayı görüntüle @
819fd244
...
...
@@ -30,6 +30,7 @@
#include <vector>
#include <list>
#include <limits>
#include <algorithm>
using
::
com
::
sun
::
star
::
uno
::
Exception
;
...
...
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