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
44956c32
Kaydet (Commit)
44956c32
authored
Mar 24, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1078504: Remove logically dead code.
Change-Id: I6bb3ee8f604d9b79209cda13a48ccd7f2df4f26e
üst
4fe8a495
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
formulacell.cxx
sc/source/core/data/formulacell.cxx
+0
-44
No files found.
sc/source/core/data/formulacell.cxx
Dosyayı görüntüle @
44956c32
...
@@ -3233,7 +3233,6 @@ void ScFormulaCell::UpdateTranspose( const ScRange& rSource, const ScAddress& rD
...
@@ -3233,7 +3233,6 @@ void ScFormulaCell::UpdateTranspose( const ScRange& rSource, const ScAddress& rD
bool
bRefChanged
=
false
;
bool
bRefChanged
=
false
;
ScToken
*
t
;
ScToken
*
t
;
ScRangeData
*
pShared
=
NULL
;
pCode
->
Reset
();
pCode
->
Reset
();
while
(
(
t
=
static_cast
<
ScToken
*>
(
pCode
->
GetNextReferenceOrName
()))
!=
NULL
)
while
(
(
t
=
static_cast
<
ScToken
*>
(
pCode
->
GetNextReferenceOrName
()))
!=
NULL
)
{
{
...
@@ -3260,27 +3259,6 @@ void ScFormulaCell::UpdateTranspose( const ScRange& rSource, const ScAddress& rD
...
@@ -3260,27 +3259,6 @@ void ScFormulaCell::UpdateTranspose( const ScRange& rSource, const ScAddress& rD
}
}
}
}
if
(
pShared
)
// Exchange Shared Formula with real Formula
{
pDocument
->
RemoveFromFormulaTree
(
this
);
// update formula count
delete
pCode
;
pCode
=
new
ScTokenArray
(
*
pShared
->
GetCode
()
);
bRefChanged
=
true
;
pCode
->
Reset
();
while
(
(
t
=
static_cast
<
ScToken
*>
(
pCode
->
GetNextReference
()))
!=
NULL
)
{
if
(
t
->
GetType
()
!=
svIndex
)
{
SingleDoubleRefModifier
aMod
(
*
t
);
ScComplexRefData
&
rRef
=
aMod
.
Ref
();
ScRange
aAbs
=
rRef
.
toAbs
(
aOldPos
);
bool
bMod
=
(
ScRefUpdate
::
UpdateTranspose
(
pDocument
,
rSource
,
rDest
,
aAbs
)
!=
UR_NOTHING
||
bPosChanged
);
if
(
bMod
)
rRef
.
SetRange
(
aAbs
,
aPos
);
// based on the new anchor position.
}
}
}
if
(
bRefChanged
)
if
(
bRefChanged
)
{
{
if
(
pUndoDoc
)
if
(
pUndoDoc
)
...
@@ -3308,7 +3286,6 @@ void ScFormulaCell::UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY
...
@@ -3308,7 +3286,6 @@ void ScFormulaCell::UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY
bool
bRefChanged
=
false
;
bool
bRefChanged
=
false
;
ScToken
*
t
;
ScToken
*
t
;
ScRangeData
*
pShared
=
NULL
;
pCode
->
Reset
();
pCode
->
Reset
();
while
(
(
t
=
static_cast
<
ScToken
*>
(
pCode
->
GetNextReferenceOrName
()))
!=
NULL
)
while
(
(
t
=
static_cast
<
ScToken
*>
(
pCode
->
GetNextReferenceOrName
()))
!=
NULL
)
...
@@ -3336,27 +3313,6 @@ void ScFormulaCell::UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY
...
@@ -3336,27 +3313,6 @@ void ScFormulaCell::UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY
}
}
}
}
if
(
pShared
)
// Exchange Shared Formula with real Formula
{
pDocument
->
RemoveFromFormulaTree
(
this
);
// Update formula count
delete
pCode
;
pCode
=
new
ScTokenArray
(
*
pShared
->
GetCode
()
);
bRefChanged
=
true
;
pCode
->
Reset
();
while
(
(
t
=
static_cast
<
ScToken
*>
(
pCode
->
GetNextReference
()))
!=
NULL
)
{
if
(
t
->
GetType
()
!=
svIndex
)
{
SingleDoubleRefModifier
aMod
(
*
t
);
ScComplexRefData
&
rRef
=
aMod
.
Ref
();
ScRange
aAbs
=
rRef
.
toAbs
(
aPos
);
bool
bMod
=
(
ScRefUpdate
::
UpdateGrow
(
rArea
,
nGrowX
,
nGrowY
,
aAbs
)
!=
UR_NOTHING
);
if
(
bMod
)
rRef
.
SetRange
(
aAbs
,
aPos
);
}
}
}
if
(
bRefChanged
)
if
(
bRefChanged
)
{
{
bCompile
=
true
;
bCompile
=
true
;
...
...
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