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
4ee0bbff
Kaydet (Commit)
4ee0bbff
authored
Eki 11, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-variable
Change-Id: Ia7fa834e3d9bf8578dcdc667fbe97ce58606704b
üst
9533e017
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
undel.cxx
sw/source/core/undo/undel.cxx
+2
-0
unins.cxx
sw/source/core/undo/unins.cxx
+1
-0
unovwr.cxx
sw/source/core/undo/unovwr.cxx
+3
-0
No files found.
sw/source/core/undo/undel.cxx
Dosyayı görüntüle @
4ee0bbff
...
@@ -789,6 +789,7 @@ void SwUndoDelete::UndoImpl(::sw::UndoRedoContext & rContext)
...
@@ -789,6 +789,7 @@ void SwUndoDelete::UndoImpl(::sw::UndoRedoContext & rContext)
OUString
const
ins
(
pTxtNd
->
InsertText
(
*
pEndStr
,
aPos
.
nContent
,
OUString
const
ins
(
pTxtNd
->
InsertText
(
*
pEndStr
,
aPos
.
nContent
,
IDocumentContentOperations
::
INS_NOHINTEXPAND
)
);
IDocumentContentOperations
::
INS_NOHINTEXPAND
)
);
assert
(
ins
.
getLength
()
==
pEndStr
->
Len
());
// must succeed
assert
(
ins
.
getLength
()
==
pEndStr
->
Len
());
// must succeed
(
void
)
ins
;
// METADATA: restore
// METADATA: restore
pTxtNd
->
RestoreMetadata
(
m_pMetadataUndoEnd
);
pTxtNd
->
RestoreMetadata
(
m_pMetadataUndoEnd
);
}
}
...
@@ -883,6 +884,7 @@ void SwUndoDelete::UndoImpl(::sw::UndoRedoContext & rContext)
...
@@ -883,6 +884,7 @@ void SwUndoDelete::UndoImpl(::sw::UndoRedoContext & rContext)
OUString
const
ins
(
pTxtNd
->
InsertText
(
*
pSttStr
,
aPos
.
nContent
,
OUString
const
ins
(
pTxtNd
->
InsertText
(
*
pSttStr
,
aPos
.
nContent
,
IDocumentContentOperations
::
INS_NOHINTEXPAND
)
);
IDocumentContentOperations
::
INS_NOHINTEXPAND
)
);
assert
(
ins
.
getLength
()
==
pSttStr
->
Len
());
// must succeed
assert
(
ins
.
getLength
()
==
pSttStr
->
Len
());
// must succeed
(
void
)
ins
;
// METADATA: restore
// METADATA: restore
pTxtNd
->
RestoreMetadata
(
m_pMetadataUndoStart
);
pTxtNd
->
RestoreMetadata
(
m_pMetadataUndoStart
);
}
}
...
...
sw/source/core/undo/unins.cxx
Dosyayı görüntüle @
4ee0bbff
...
@@ -730,6 +730,7 @@ void SwUndoReplace::Impl::UndoImpl(::sw::UndoRedoContext & rContext)
...
@@ -730,6 +730,7 @@ void SwUndoReplace::Impl::UndoImpl(::sw::UndoRedoContext & rContext)
{
{
OUString
const
ins
(
pNd
->
InsertText
(
m_sOld
,
aIdx
)
);
OUString
const
ins
(
pNd
->
InsertText
(
m_sOld
,
aIdx
)
);
assert
(
ins
.
getLength
()
==
m_sOld
.
getLength
());
// must succeed
assert
(
ins
.
getLength
()
==
m_sOld
.
getLength
());
// must succeed
(
void
)
ins
;
}
}
if
(
pHistory
)
if
(
pHistory
)
...
...
sw/source/core/undo/unovwr.cxx
Dosyayı görüntüle @
4ee0bbff
...
@@ -157,6 +157,7 @@ sal_Bool SwUndoOverwrite::CanGrouping( SwDoc* pDoc, SwPosition& rPos,
...
@@ -157,6 +157,7 @@ sal_Bool SwUndoOverwrite::CanGrouping( SwDoc* pDoc, SwPosition& rPos,
OUString
const
ins
(
pDelTxtNd
->
InsertText
(
OUString
(
cIns
),
rPos
.
nContent
,
OUString
const
ins
(
pDelTxtNd
->
InsertText
(
OUString
(
cIns
),
rPos
.
nContent
,
IDocumentContentOperations
::
INS_EMPTYEXPAND
)
);
IDocumentContentOperations
::
INS_EMPTYEXPAND
)
);
assert
(
ins
.
getLength
()
==
1
);
// check in SwDoc::Overwrite => cannot fail
assert
(
ins
.
getLength
()
==
1
);
// check in SwDoc::Overwrite => cannot fail
(
void
)
ins
;
aInsStr
.
Insert
(
cIns
);
aInsStr
.
Insert
(
cIns
);
if
(
!
bInsChar
)
if
(
!
bInsChar
)
...
@@ -210,6 +211,7 @@ void SwUndoOverwrite::UndoImpl(::sw::UndoRedoContext & rContext)
...
@@ -210,6 +211,7 @@ void SwUndoOverwrite::UndoImpl(::sw::UndoRedoContext & rContext)
OUString
aTmpStr
(
aDelStr
.
GetChar
(
n
));
OUString
aTmpStr
(
aDelStr
.
GetChar
(
n
));
OUString
const
ins
(
pTxtNd
->
InsertText
(
aTmpStr
,
rIdx
)
);
OUString
const
ins
(
pTxtNd
->
InsertText
(
aTmpStr
,
rIdx
)
);
assert
(
ins
.
getLength
()
==
1
);
// cannot fail
assert
(
ins
.
getLength
()
==
1
);
// cannot fail
(
void
)
ins
;
rIdx
-=
2
;
rIdx
-=
2
;
pTxtNd
->
EraseText
(
rIdx
,
1
);
pTxtNd
->
EraseText
(
rIdx
,
1
);
rIdx
+=
2
;
rIdx
+=
2
;
...
@@ -282,6 +284,7 @@ void SwUndoOverwrite::RedoImpl(::sw::UndoRedoContext & rContext)
...
@@ -282,6 +284,7 @@ void SwUndoOverwrite::RedoImpl(::sw::UndoRedoContext & rContext)
pTxtNd
->
InsertText
(
OUString
(
aInsStr
.
GetChar
(
n
)),
rIdx
,
pTxtNd
->
InsertText
(
OUString
(
aInsStr
.
GetChar
(
n
)),
rIdx
,
IDocumentContentOperations
::
INS_EMPTYEXPAND
)
);
IDocumentContentOperations
::
INS_EMPTYEXPAND
)
);
assert
(
ins
.
getLength
()
==
1
);
// cannot fail
assert
(
ins
.
getLength
()
==
1
);
// cannot fail
(
void
)
ins
;
if
(
n
<
aDelStr
.
Len
()
)
if
(
n
<
aDelStr
.
Len
()
)
{
{
rIdx
-=
2
;
rIdx
-=
2
;
...
...
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