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
e6a0ef5e
Kaydet (Commit)
e6a0ef5e
authored
Tem 08, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
comphelper: remove boost::bind from headers
Change-Id: I40c504d086c8ae1fd825acdafaada283ad9db8d0
üst
e8eb4999
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
undomanagerhelper.cxx
framework/source/fwe/helper/undomanagerhelper.cxx
+3
-1
flagguard.hxx
include/comphelper/flagguard.hxx
+14
-13
scopeguard.hxx
include/comphelper/scopeguard.hxx
+0
-1
No files found.
framework/source/fwe/helper/undomanagerhelper.cxx
Dosyayı görüntüle @
e6a0ef5e
...
@@ -29,9 +29,11 @@
...
@@ -29,9 +29,11 @@
#include <tools/diagnose_ex.h>
#include <tools/diagnose_ex.h>
#include <osl/conditn.hxx>
#include <osl/conditn.hxx>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <stack>
#include <stack>
#include <queue>
#include <queue>
#include <boost/function.hpp>
namespace
framework
namespace
framework
{
{
...
...
include/comphelper/flagguard.hxx
Dosyayı görüntüle @
e6a0ef5e
...
@@ -26,15 +26,13 @@
...
@@ -26,15 +26,13 @@
namespace
comphelper
namespace
comphelper
{
{
//= FlagRestorationGuard
//= FlagRestorationGuard
class
COMPHELPER_DLLPUBLIC
FlagRestorationGuard
:
public
ScopeGuard
class
COMPHELPER_DLLPUBLIC
FlagRestorationGuard
:
public
ScopeGuard
{
{
public
:
public
:
FlagRestorationGuard
(
bool
&
i_flagRef
,
bool
i_temporaryValue
,
exc_handling
i_excHandling
=
IGNORE_EXCEPTIONS
)
FlagRestorationGuard
(
bool
&
i_flagRef
,
bool
i_temporaryValue
,
exc_handling
i_excHandling
=
IGNORE_EXCEPTIONS
)
:
ScopeGuard
(
::
boost
::
bind
(
RestoreFlag
,
::
boost
::
ref
(
i_flagRef
),
!!
i_flagRef
),
i_excHandling
)
:
ScopeGuard
(
RestoreFlag
(
i_flagRef
),
i_excHandling
)
{
{
i_flagRef
=
i_temporaryValue
;
i_flagRef
=
i_temporaryValue
;
}
}
...
@@ -42,10 +40,19 @@ namespace comphelper
...
@@ -42,10 +40,19 @@ namespace comphelper
~
FlagRestorationGuard
();
~
FlagRestorationGuard
();
private
:
private
:
static
void
RestoreFlag
(
bool
&
i_flagRef
,
bool
i_originalValue
)
// note: can't store the originalValue in a FlagRestorationGuard member,
// because it will be used from base class dtor
struct
RestoreFlag
{
{
i_flagRef
=
i_originalValue
;
bool
&
rFlag
;
}
bool
originalValue
;
RestoreFlag
(
bool
&
i_flagRef
)
:
rFlag
(
i_flagRef
),
originalValue
(
i_flagRef
)
{}
void
operator
()()
{
rFlag
=
originalValue
;
}
};
};
};
...
@@ -55,18 +62,12 @@ namespace comphelper
...
@@ -55,18 +62,12 @@ namespace comphelper
{
{
public
:
public
:
explicit
FlagGuard
(
bool
&
i_flagRef
,
exc_handling
i_excHandling
=
IGNORE_EXCEPTIONS
)
explicit
FlagGuard
(
bool
&
i_flagRef
,
exc_handling
i_excHandling
=
IGNORE_EXCEPTIONS
)
:
ScopeGuard
(
::
boost
::
bind
(
ResetFlag
,
::
boost
::
ref
(
i_flagRef
)
),
i_excHandling
)
:
ScopeGuard
(
[
&
i_flagRef
]
()
{
i_flagRef
=
false
;
},
i_excHandling
)
{
{
i_flagRef
=
true
;
i_flagRef
=
true
;
}
}
~
FlagGuard
();
~
FlagGuard
();
private
:
static
void
ResetFlag
(
bool
&
i_flagRef
)
{
i_flagRef
=
false
;
}
};
};
...
...
include/comphelper/scopeguard.hxx
Dosyayı görüntüle @
e6a0ef5e
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include <comphelper/comphelperdllapi.h>
#include <comphelper/comphelperdllapi.h>
#include <boost/function.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
namespace
comphelper
{
namespace
comphelper
{
...
...
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