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
1dca84e3
Kaydet (Commit)
1dca84e3
authored
Tem 08, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: remove boost::bind from docbm.cxx
Change-Id: I3e91817c5113a391668ef0f35d6b8df4702f9715
üst
84806f30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
docbm.cxx
sw/source/core/doc/docbm.cxx
+7
-8
No files found.
sw/source/core/doc/docbm.cxx
Dosyayı görüntüle @
1dca84e3
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include <MarkManager.hxx>
#include <MarkManager.hxx>
#include <bookmrk.hxx>
#include <bookmrk.hxx>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/function.hpp>
#include <cntfrm.hxx>
#include <cntfrm.hxx>
#include <crossrefbookmark.hxx>
#include <crossrefbookmark.hxx>
...
@@ -168,7 +167,7 @@ namespace
...
@@ -168,7 +167,7 @@ namespace
rMarks
.
begin
(),
rMarks
.
begin
(),
pCandidatesEnd
,
pCandidatesEnd
,
back_inserter
(
vCandidates
),
back_inserter
(
vCandidates
),
boost
::
bind
(
::
std
::
logical_not
<
bool
>
(),
boost
::
bind
(
&
IMark
::
EndsBefore
,
_1
,
rPos
)
)
);
[
&
]
(
IDocumentMarkAccess
::
pMark_t
const
&
rpMark
)
{
return
!
rpMark
->
EndsBefore
(
rPos
);
}
);
// no candidate left => we are in front of the first mark or there are none
// no candidate left => we are in front of the first mark or there are none
if
(
vCandidates
.
empty
())
return
NULL
;
if
(
vCandidates
.
empty
())
return
NULL
;
// return the highest (last) candidate using mark end ordering
// return the highest (last) candidate using mark end ordering
...
@@ -269,7 +268,7 @@ namespace
...
@@ -269,7 +268,7 @@ namespace
return
find_if
(
return
find_if
(
ppMarksBegin
,
ppMarksBegin
,
ppMarksEnd
,
ppMarksEnd
,
boost
::
bind
(
&
OUString
::
equals
,
boost
::
bind
(
&
IMark
::
GetName
,
_1
),
rName
)
);
[
&
]
(
IDocumentMarkAccess
::
pMark_t
const
&
rpMark
)
{
return
rpMark
->
GetName
()
==
rName
;
}
);
}
}
#if 0
#if 0
...
@@ -960,7 +959,7 @@ namespace sw { namespace mark
...
@@ -960,7 +959,7 @@ namespace sw { namespace mark
find_if
(
find_if
(
pMarkLow
,
pMarkLow
,
pMarkHigh
,
pMarkHigh
,
boost
::
bind
(
::
std
::
equal_to
<
const
IMark
*>
(),
boost
::
bind
(
&
boost
::
shared_ptr
<
IMark
>::
get
,
_1
),
pMark
)
);
[
&
]
(
pMark_t
const
&
rpMark
)
{
return
rpMark
.
get
()
==
pMark
;
}
);
if
(
pMarkFound
!=
pMarkHigh
)
if
(
pMarkFound
!=
pMarkHigh
)
deleteMark
(
pMarkFound
);
deleteMark
(
pMarkFound
);
}
}
...
@@ -1015,8 +1014,8 @@ namespace sw { namespace mark
...
@@ -1015,8 +1014,8 @@ namespace sw { namespace mark
{
{
const_iterator_t
pFieldmark
=
find_if
(
const_iterator_t
pFieldmark
=
find_if
(
m_vFieldmarks
.
begin
(),
m_vFieldmarks
.
begin
(),
m_vFieldmarks
.
end
(
),
m_vFieldmarks
.
end
(),
boost
::
bind
(
&
IMark
::
IsCoveringPosition
,
_1
,
rPos
)
);
[
&
]
(
pMark_t
const
&
rpMark
)
{
return
rpMark
->
IsCoveringPosition
(
rPos
);
}
);
if
(
pFieldmark
==
m_vFieldmarks
.
end
())
return
NULL
;
if
(
pFieldmark
==
m_vFieldmarks
.
end
())
return
NULL
;
return
dynamic_cast
<
IFieldmark
*>
(
pFieldmark
->
get
());
return
dynamic_cast
<
IFieldmark
*>
(
pFieldmark
->
get
());
}
}
...
@@ -1081,8 +1080,8 @@ namespace sw { namespace mark
...
@@ -1081,8 +1080,8 @@ namespace sw { namespace mark
{
{
const_iterator_t
pAnnotationMark
=
find_if
(
const_iterator_t
pAnnotationMark
=
find_if
(
m_vAnnotationMarks
.
begin
(),
m_vAnnotationMarks
.
begin
(),
m_vAnnotationMarks
.
end
(
),
m_vAnnotationMarks
.
end
(),
boost
::
bind
(
&
IMark
::
IsCoveringPosition
,
_1
,
rPos
)
);
[
&
]
(
pMark_t
const
&
rpMark
)
{
return
rpMark
->
IsCoveringPosition
(
rPos
);
}
);
if
(
pAnnotationMark
==
m_vAnnotationMarks
.
end
())
if
(
pAnnotationMark
==
m_vAnnotationMarks
.
end
())
return
NULL
;
return
NULL
;
return
pAnnotationMark
->
get
();
return
pAnnotationMark
->
get
();
...
...
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