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
c5e7e3ba
Kaydet (Commit)
c5e7e3ba
authored
Şub 20, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:subtlezeroinit: starmath
Change-Id: Ifc6f4788bb285e28451df9c98a72b454b7685160
üst
b7302c48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
cursor.hxx
starmath/inc/cursor.hxx
+1
-1
cursor.cxx
starmath/source/cursor.cxx
+8
-8
No files found.
starmath/inc/cursor.hxx
Dosyayı görüntüle @
c5e7e3ba
...
...
@@ -246,7 +246,7 @@ private:
* This method sets pNode = NULL and remove it from its parent.
* (Assuming it has a parent, and is a child of it).
*/
static
SmNodeList
*
NodeToList
(
SmNode
*&
rpNode
,
SmNodeList
*
pList
=
new
SmNodeList
()
){
static
SmNodeList
*
NodeToList
(
SmNode
*&
rpNode
,
SmNodeList
*
pList
=
new
SmNodeList
){
//Remove from parent and NULL rpNode
SmNode
*
pNode
=
rpNode
;
if
(
rpNode
&&
rpNode
->
GetParent
()){
//Don't remove this, correctness relies on it
...
...
starmath/source/cursor.cxx
Dosyayı görüntüle @
c5e7e3ba
...
...
@@ -508,7 +508,7 @@ void SmCursor::InsertSubSup(SmSubSup eSubSup) {
SmNodeList
*
pLineList
=
NodeToList
(
pLine
);
//Take the selection, and/or find iterator for current position
SmNodeList
*
pSelectedNodesList
=
new
SmNodeList
()
;
SmNodeList
*
pSelectedNodesList
=
new
SmNodeList
;
SmNodeList
::
iterator
it
;
if
(
HasSelection
())
it
=
TakeSelectedNodesFromList
(
pLineList
,
pSelectedNodesList
);
...
...
@@ -672,7 +672,7 @@ void SmCursor::InsertBrackets(SmBracketType eBracketType) {
SmNodeList
*
pLineList
=
NodeToList
(
pLine
);
//Take the selection, and/or find iterator for current position
SmNodeList
*
pSelectedNodesList
=
new
SmNodeList
()
;
SmNodeList
*
pSelectedNodesList
=
new
SmNodeList
;
SmNodeList
::
iterator
it
;
if
(
HasSelection
())
it
=
TakeSelectedNodesFromList
(
pLineList
,
pSelectedNodesList
);
...
...
@@ -802,7 +802,7 @@ bool SmCursor::InsertRow() {
//If we're in the context of a table
if
(
pTable
)
{
SmNodeList
*
pNewLineList
=
new
SmNodeList
()
;
SmNodeList
*
pNewLineList
=
new
SmNodeList
;
//Move elements from pLineList to pNewLineList
pNewLineList
->
splice
(
pNewLineList
->
begin
(),
*
pLineList
,
it
,
pLineList
->
end
());
//Make sure it is valid again
...
...
@@ -887,7 +887,7 @@ void SmCursor::InsertFraction() {
SmNodeList
*
pLineList
=
NodeToList
(
pLine
);
//Take the selection, and/or find iterator for current position
SmNodeList
*
pSelectedNodesList
=
new
SmNodeList
()
;
SmNodeList
*
pSelectedNodesList
=
new
SmNodeList
;
SmNodeList
::
iterator
it
;
if
(
HasSelection
())
it
=
TakeSelectedNodesFromList
(
pLineList
,
pSelectedNodesList
);
...
...
@@ -936,7 +936,7 @@ void SmCursor::InsertText(const OUString& aString)
pText
->
AdjustFontDesc
();
pText
->
Prepare
(
mpDocShell
->
GetFormat
(),
*
mpDocShell
);
SmNodeList
*
pList
=
new
SmNodeList
()
;
SmNodeList
*
pList
=
new
SmNodeList
;
pList
->
push_front
(
pText
);
InsertNodes
(
pList
);
...
...
@@ -1038,7 +1038,7 @@ void SmCursor::InsertElement(SmFormulaElement element){
pNewNode
->
Prepare
(
mpDocShell
->
GetFormat
(),
*
mpDocShell
);
//Insert new node
SmNodeList
*
pList
=
new
SmNodeList
()
;
SmNodeList
*
pList
=
new
SmNodeList
;
pList
->
push_front
(
pNewNode
);
InsertNodes
(
pList
);
...
...
@@ -1065,7 +1065,7 @@ void SmCursor::InsertSpecial(const OUString& _aString)
pSpecial
->
Prepare
(
mpDocShell
->
GetFormat
(),
*
mpDocShell
);
//Insert the node
SmNodeList
*
pList
=
new
SmNodeList
()
;
SmNodeList
*
pList
=
new
SmNodeList
;
pList
->
push_front
(
pSpecial
);
InsertNodes
(
pList
);
...
...
@@ -1163,7 +1163,7 @@ void SmCursor::Paste() {
SmNodeList
*
SmCursor
::
CloneList
(
SmClipboard
&
rClipboard
){
SmCloningVisitor
aCloneFactory
;
SmNodeList
*
pClones
=
new
SmNodeList
()
;
SmNodeList
*
pClones
=
new
SmNodeList
;
for
(
auto
&
xNode
:
rClipboard
){
SmNode
*
pClone
=
aCloneFactory
.
Clone
(
xNode
.
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