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
c567c0cf
Kaydet (Commit)
c567c0cf
authored
May 11, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
dbaccess: replace boost::bind with C++11 lambdas
Change-Id: I468f9c7af9c8c8189c51790e0301dd8c60a9f83c
üst
28159e91
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
precompiled_dba.hxx
dbaccess/inc/pch/precompiled_dba.hxx
+0
-1
precompiled_dbu.hxx
dbaccess/inc/pch/precompiled_dbu.hxx
+0
-1
databasedocument.cxx
dbaccess/source/core/dataaccess/databasedocument.cxx
+10
-7
No files found.
dbaccess/inc/pch/precompiled_dba.hxx
Dosyayı görüntüle @
c567c0cf
...
...
@@ -49,7 +49,6 @@
#include <type_traits>
#include <utility>
#include <vector>
#include <boost/bind.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/optional.hpp>
#include <boost/optional/optional.hpp>
...
...
dbaccess/inc/pch/precompiled_dbu.hxx
Dosyayı görüntüle @
c567c0cf
...
...
@@ -31,7 +31,6 @@
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <boost/bind.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/optional.hpp>
#include <osl/diagnose.h>
...
...
dbaccess/source/core/dataaccess/databasedocument.cxx
Dosyayı görüntüle @
c567c0cf
...
...
@@ -81,8 +81,6 @@
#include <osl/diagnose.h>
#include <tools/errcode.hxx>
#include <boost/bind.hpp>
#include <functional>
#include <list>
...
...
@@ -1500,7 +1498,8 @@ void ODatabaseDocument::impl_disposeControllerFrames_nothrow()
}
}
void
SAL_CALL
ODatabaseDocument
::
close
(
sal_Bool
_bDeliverOwnership
)
throw
(
CloseVetoException
,
RuntimeException
,
std
::
exception
)
void
SAL_CALL
ODatabaseDocument
::
close
(
sal_Bool
bDeliverOwnership
)
throw
(
CloseVetoException
,
RuntimeException
,
std
::
exception
)
{
// nearly everything below can/must be done without our mutex locked, the below is just for
// the checks for being disposed and the like
...
...
@@ -1517,12 +1516,14 @@ void SAL_CALL ODatabaseDocument::close( sal_Bool _bDeliverOwnership ) throw (Clo
// allow listeners to veto
lang
::
EventObject
aEvent
(
*
this
);
m_aCloseListener
.
forEach
<
XCloseListener
>
(
boost
::
bind
(
&
XCloseListener
::
queryClosing
,
_1
,
boost
::
cref
(
aEvent
),
boost
::
cref
(
_bDeliverOwnership
)
)
);
[
&
aEvent
,
&
bDeliverOwnership
]
(
uno
::
Reference
<
XCloseListener
>
const
&
xListener
)
{
return
xListener
->
queryClosing
(
aEvent
,
bDeliverOwnership
);
});
// notify that we're going to unload
m_aEventNotifier
.
notifyDocumentEvent
(
"OnPrepareUnload"
);
impl_closeControllerFrames_nolck_throw
(
_
bDeliverOwnership
);
impl_closeControllerFrames_nolck_throw
(
bDeliverOwnership
);
m_aCloseListener
.
notifyEach
(
&
XCloseListener
::
notifyClosing
,
(
const
lang
::
EventObject
&
)
aEvent
);
...
...
@@ -1777,12 +1778,14 @@ Sequence< OUString > SAL_CALL ODatabaseDocument::getDocumentSubStoragesNames( )
return
xStorageAccess
->
getDocumentSubStoragesNames
();
}
void
ODatabaseDocument
::
impl_notifyStorageChange_nolck_nothrow
(
const
Reference
<
XStorage
>&
_r
xNewRootStorage
)
void
ODatabaseDocument
::
impl_notifyStorageChange_nolck_nothrow
(
const
Reference
<
XStorage
>&
xNewRootStorage
)
{
Reference
<
XInterface
>
xMe
(
*
this
);
m_aStorageListeners
.
forEach
<
XStorageChangeListener
>
(
boost
::
bind
(
&
XStorageChangeListener
::
notifyStorageChange
,
_1
,
boost
::
cref
(
xMe
),
boost
::
cref
(
_rxNewRootStorage
)
)
);
[
&
xMe
,
&
xNewRootStorage
]
(
uno
::
Reference
<
XStorageChangeListener
>
const
&
xListener
)
{
return
xListener
->
notifyStorageChange
(
xMe
,
xNewRootStorage
);
});
}
void
ODatabaseDocument
::
disposing
()
...
...
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