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
aa5b337b
Kaydet (Commit)
aa5b337b
authored
Mar 02, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add EditPaM::operator !() and simplify EditSelection::IsInvalid
Change-Id: Id47d77e63eff2267f5e4112b88dfb90c3ec95bd8
üst
95412052
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
editdoc.cxx
editeng/source/editeng/editdoc.cxx
+0
-7
editdoc.hxx
editeng/source/editeng/editdoc.hxx
+2
-1
No files found.
editeng/source/editeng/editdoc.cxx
Dosyayı görüntüle @
aa5b337b
...
@@ -1212,13 +1212,6 @@ EditSelection& EditSelection::operator = ( const EditPaM& rPaM )
...
@@ -1212,13 +1212,6 @@ EditSelection& EditSelection::operator = ( const EditPaM& rPaM )
return
*
this
;
return
*
this
;
}
}
bool
EditSelection
::
IsInvalid
()
const
{
EditPaM
aEmptyPaM
;
return
(
aStartPaM
==
aEmptyPaM
)
||
(
aEndPaM
==
aEmptyPaM
);
}
void
EditSelection
::
Adjust
(
const
EditDoc
&
rNodes
)
void
EditSelection
::
Adjust
(
const
EditDoc
&
rNodes
)
{
{
DBG_ASSERT
(
aStartPaM
.
GetIndex
()
<=
aStartPaM
.
GetNode
()
->
Len
(),
"Index out of range in Adjust(1)"
);
DBG_ASSERT
(
aStartPaM
.
GetIndex
()
<=
aStartPaM
.
GetNode
()
->
Len
(),
"Index out of range in Adjust(1)"
);
...
...
editeng/source/editeng/editdoc.hxx
Dosyayı görüntüle @
aa5b337b
...
@@ -332,6 +332,7 @@ public:
...
@@ -332,6 +332,7 @@ public:
EditPaM
&
operator
=
(
const
EditPaM
&
rPaM
);
EditPaM
&
operator
=
(
const
EditPaM
&
rPaM
);
friend
bool
operator
==
(
const
EditPaM
&
r1
,
const
EditPaM
&
r2
);
friend
bool
operator
==
(
const
EditPaM
&
r1
,
const
EditPaM
&
r2
);
friend
bool
operator
!=
(
const
EditPaM
&
r1
,
const
EditPaM
&
r2
);
friend
bool
operator
!=
(
const
EditPaM
&
r1
,
const
EditPaM
&
r2
);
bool
operator
!
()
const
{
return
!
pNode
&&
!
nIndex
;
}
};
};
#define PORTIONKIND_TEXT 0
#define PORTIONKIND_TEXT 0
...
@@ -711,7 +712,7 @@ public:
...
@@ -711,7 +712,7 @@ public:
const
EditPaM
&
Max
()
const
{
return
aEndPaM
;
}
const
EditPaM
&
Max
()
const
{
return
aEndPaM
;
}
bool
HasRange
()
const
{
return
aStartPaM
!=
aEndPaM
;
}
bool
HasRange
()
const
{
return
aStartPaM
!=
aEndPaM
;
}
bool
IsInvalid
()
const
;
bool
IsInvalid
()
const
{
return
!
aStartPaM
||
!
aEndPaM
;
}
bool
DbgIsBuggy
(
EditDoc
&
rDoc
);
bool
DbgIsBuggy
(
EditDoc
&
rDoc
);
void
Adjust
(
const
EditDoc
&
rNodes
);
void
Adjust
(
const
EditDoc
&
rNodes
);
...
...
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