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
7281580e
Kaydet (Commit)
7281580e
authored
Eki 22, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Turn virtual ScToken::Dump into a single free function DumpToken
Change-Id: I2c81f24a27ede9922ed8ff16cf0ea4af824e9e59
üst
6a7649f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
28 deletions
+18
-28
token.hxx
sc/inc/token.hxx
+2
-8
token.cxx
sc/source/core/tool/token.cxx
+16
-20
No files found.
sc/inc/token.hxx
Dosyayı görüntüle @
7281580e
...
...
@@ -89,11 +89,11 @@ public:
virtual
ScJumpMatrix
*
GetJumpMatrix
()
const
;
virtual
const
ScRefList
*
GetRefList
()
const
;
virtual
ScRefList
*
GetRefList
();
};
#if DEBUG_FORMULA_COMPILER
virtual
void
Dump
()
const
;
void
DumpToken
(
ScToken
const
&
rToken
)
;
#endif
};
/** If rTok1 and rTok2 both are SingleRef or DoubleRef tokens, extend/merge
ranges as needed for ocRange.
...
...
@@ -134,9 +134,6 @@ public:
virtual
bool
operator
==
(
const
formula
::
FormulaToken
&
rToken
)
const
SAL_OVERRIDE
;
virtual
FormulaToken
*
Clone
()
const
SAL_OVERRIDE
{
return
new
ScSingleRefToken
(
*
this
);
}
#if DEBUG_FORMULA_COMPILER
virtual
void
Dump
()
const
SAL_OVERRIDE
;
#endif
DECL_FIXEDMEMPOOL_NEWDEL
(
ScSingleRefToken
);
};
...
...
@@ -165,9 +162,6 @@ public:
virtual
bool
operator
==
(
const
formula
::
FormulaToken
&
rToken
)
const
SAL_OVERRIDE
;
virtual
FormulaToken
*
Clone
()
const
SAL_OVERRIDE
{
return
new
ScDoubleRefToken
(
*
this
);
}
#if DEBUG_FORMULA_COMPILER
virtual
void
Dump
()
const
SAL_OVERRIDE
;
#endif
DECL_FIXEDMEMPOOL_NEWDEL
(
ScDoubleRefToken
);
};
...
...
sc/source/core/tool/token.cxx
Dosyayı görüntüle @
7281580e
...
...
@@ -507,9 +507,21 @@ bool ScToken::checkTextEqual( const FormulaToken& _rToken ) const
}
#if DEBUG_FORMULA_COMPILER
void
ScToken
::
Dump
()
const
void
DumpToken
(
ScToken
const
&
rToken
)
{
cout
<<
"-- ScToken (base class)"
<<
endl
;
switch
(
rToken
.
GetType
())
{
case
svSingleRef
:
cout
<<
"-- ScSingleRefToken"
<<
endl
;
rToken
.
GetSingleRef
().
Dump
(
1
);
break
;
case
svDoubleRef
:
cout
<<
"-- ScDoubleRefToken"
<<
endl
;
rToken
.
GetDoubleRef
().
Dump
(
1
);
break
;
default
:
cout
<<
"-- ScToken (base class)"
<<
endl
;
break
;
}
}
#endif
...
...
@@ -724,14 +736,6 @@ bool ScSingleRefToken::operator==( const FormulaToken& r ) const
return
FormulaToken
::
operator
==
(
r
)
&&
aSingleRef
==
static_cast
<
const
ScToken
&>
(
r
).
GetSingleRef
();
}
#if DEBUG_FORMULA_COMPILER
void
ScSingleRefToken
::
Dump
()
const
{
cout
<<
"-- ScSingleRefToken"
<<
endl
;
aSingleRef
.
Dump
(
1
);
}
#endif
const
ScSingleRefData
&
ScDoubleRefToken
::
GetSingleRef
()
const
{
return
aDoubleRef
.
Ref1
;
}
ScSingleRefData
&
ScDoubleRefToken
::
GetSingleRef
()
{
return
aDoubleRef
.
Ref1
;
}
const
ScComplexRefData
&
ScDoubleRefToken
::
GetDoubleRef
()
const
{
return
aDoubleRef
;
}
...
...
@@ -747,14 +751,6 @@ bool ScDoubleRefToken::operator==( const FormulaToken& r ) const
return
FormulaToken
::
operator
==
(
r
)
&&
aDoubleRef
==
static_cast
<
const
ScToken
&>
(
r
).
GetDoubleRef
();
}
#if DEBUG_FORMULA_COMPILER
void
ScDoubleRefToken
::
Dump
()
const
{
cout
<<
"-- ScDoubleRefToken"
<<
endl
;
aDoubleRef
.
Dump
(
1
);
}
#endif
const
ScRefList
*
ScRefListToken
::
GetRefList
()
const
{
return
&
aRefList
;
}
ScRefList
*
ScRefListToken
::
GetRefList
()
{
return
&
aRefList
;
}
bool
ScRefListToken
::
operator
==
(
const
FormulaToken
&
r
)
const
...
...
@@ -4091,7 +4087,7 @@ void ScTokenArray::Dump() const
continue
;
}
p
->
Dump
(
);
DumpToken
(
*
p
);
}
cout
<<
"+++ RPN Tokens +++"
<<
endl
;
...
...
@@ -4105,7 +4101,7 @@ void ScTokenArray::Dump() const
continue
;
}
p
->
Dump
(
);
DumpToken
(
*
p
);
}
}
#endif
...
...
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