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
c9023860
Kaydet (Commit)
c9023860
authored
Eyl 28, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fftester: cut out middle man in deref null ptr and get address
Change-Id: Iba157f47e847cb2eba1d771a6f357019d68b4f13
üst
af652b80
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
unocrsr.hxx
sw/inc/unocrsr.hxx
+5
-3
UnoCursor-1.rtf
sw/qa/core/data/rtf/fail/UnoCursor-1.rtf
+0
-0
unoobj.cxx
sw/source/core/unocore/unoobj.cxx
+4
-4
No files found.
sw/inc/unocrsr.hxx
Dosyayı görüntüle @
c9023860
...
...
@@ -144,10 +144,12 @@ namespace sw
if
(
!
GetRegisteredIn
())
m_pCursor
.
reset
();
};
SwUnoCursor
&
operator
*
()
const
{
return
*
m_pCursor
.
get
();
}
SwUnoCursor
*
operator
->
()
const
SwUnoCursor
*
get
()
const
{
return
m_pCursor
.
get
();
}
SwUnoCursor
*
operator
->
()
const
{
return
get
();
}
SwUnoCursor
&
operator
*
()
const
{
return
*
get
();
}
UnoCursorPointer
&
operator
=
(
UnoCursorPointer
aOther
)
{
if
(
aOther
.
m_pCursor
)
...
...
sw/qa/core/data/rtf/fail/UnoCursor-1.rtf
0 → 100644
Dosyayı görüntüle @
c9023860
File added
sw/source/core/unocore/unoobj.cxx
Dosyayı görüntüle @
c9023860
...
...
@@ -690,10 +690,10 @@ SwUnoCursor& SwXTextCursor::GetCursor()
{
return
*
m_pImpl
->
m_pUnoCursor
;
}
SwPaM
const
*
SwXTextCursor
::
GetPaM
()
const
{
return
&
(
*
m_pImpl
->
m_pUnoCursor
);
}
{
return
m_pImpl
->
m_pUnoCursor
.
get
(
);
}
SwPaM
*
SwXTextCursor
::
GetPaM
()
{
return
&
(
*
m_pImpl
->
m_pUnoCursor
);
}
{
return
m_pImpl
->
m_pUnoCursor
.
get
(
);
}
SwDoc
const
*
SwXTextCursor
::
GetDoc
()
const
{
return
m_pImpl
->
m_pUnoCursor
?
m_pImpl
->
m_pUnoCursor
->
GetDoc
()
:
nullptr
;
}
...
...
@@ -726,8 +726,8 @@ SwXTextCursor::~SwXTextCursor()
void
SwXTextCursor
::
DeleteAndInsert
(
const
OUString
&
rText
,
const
bool
bForceExpandHints
)
{
auto
pUnoCursor
=
static_cast
<
SwCursor
*>
(
&
(
*
m_pImpl
->
m_pUnoCursor
));
if
(
pUnoCursor
)
auto
pUnoCursor
=
static_cast
<
SwCursor
*>
(
m_pImpl
->
m_pUnoCursor
.
get
(
));
if
(
pUnoCursor
)
{
// Start/EndAction
SwDoc
*
pDoc
=
pUnoCursor
->
GetDoc
();
...
...
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