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
dfeb898b
Kaydet (Commit)
dfeb898b
authored
Ock 04, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
boost::unordered_set->std::unordered_set
Change-Id: I0a8ecc3aa26ffc56f216a6a0e078e158b03a4a02
üst
7da92fdc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
12 deletions
+15
-12
token.cxx
formula/source/core/api/token.cxx
+1
-1
FormulaCompiler.hxx
include/formula/FormulaCompiler.hxx
+4
-3
tokenarray.hxx
include/formula/tokenarray.hxx
+4
-2
precompiled_sc.hxx
sc/inc/pch/precompiled_sc.hxx
+2
-2
column4.cxx
sc/source/core/data/column4.cxx
+4
-4
No files found.
formula/source/core/api/token.cxx
Dosyayı görüntüle @
dfeb898b
...
...
@@ -674,7 +674,7 @@ bool FormulaTokenArray::HasNameOrColRowName() const
return
false
;
}
bool
FormulaTokenArray
::
HasOpCodes
(
const
boost
::
unordered_set
<
OpCode
>&
rOpCodes
)
const
bool
FormulaTokenArray
::
HasOpCodes
(
const
unordered_opcode_set
&
rOpCodes
)
const
{
FormulaToken
**
p
=
pCode
;
FormulaToken
**
pEnd
=
p
+
static_cast
<
size_t
>
(
nLen
);
...
...
include/formula/FormulaCompiler.hxx
Dosyayı görüntüle @
dfeb898b
...
...
@@ -26,7 +26,6 @@
#include <tools/debug.hxx>
#include <boost/shared_ptr.hpp>
#include <boost/unordered_map.hpp>
#include <boost/noncopyable.hpp>
#include <com/sun/star/uno/Sequence.hxx>
...
...
@@ -36,6 +35,8 @@
#include <formula/token.hxx>
#include <formula/ExternalReferenceHelper.hxx>
#include <unordered_map>
#define FORMULA_MAXJUMPCOUNT 32
/* maximum number of jumps (ocChose) */
#define FORMULA_MAXTOKENS 8192
/* maximum number of tokens in formula */
...
...
@@ -60,8 +61,8 @@ struct FormulaArrayStack
};
typedef
::
boost
::
unordered_map
<
OUString
,
OpCode
,
OUStringHash
,
::
std
::
equal_to
<
OUString
>
>
OpCodeHashMap
;
typedef
::
boost
::
unordered_map
<
OUString
,
OUString
,
OUStringHash
,
::
std
::
equal_to
<
OUString
>
>
ExternalHashMap
;
typedef
std
::
unordered_map
<
OUString
,
OpCode
,
OUStringHash
,
::
std
::
equal_to
<
OUString
>
>
OpCodeHashMap
;
typedef
std
::
unordered_map
<
OUString
,
OUString
,
OUStringHash
,
::
std
::
equal_to
<
OUString
>
>
ExternalHashMap
;
class
FORMULA_DLLPUBLIC
FormulaCompiler
:
boost
::
noncopyable
{
...
...
include/formula/tokenarray.hxx
Dosyayı görüntüle @
dfeb898b
...
...
@@ -25,7 +25,7 @@
#include <formula/ExternalReferenceHelper.hxx>
#include <limits.h>
#include <
boost/unordered_set.hpp
>
#include <
unordered_set
>
namespace
svl
{
...
...
@@ -90,6 +90,8 @@ public:
inline
bool
isRewriteNeeded
(
OpCode
eOp
)
const
;
};
typedef
std
::
unordered_set
<
OpCode
,
std
::
hash
<
std
::
underlying_type
<
OpCode
>::
type
>
>
unordered_opcode_set
;
class
FORMULA_DLLPUBLIC
FormulaTokenArray
{
friend
class
FormulaCompiler
;
...
...
@@ -166,7 +168,7 @@ public:
* @return true if the token array contains at least one of the specified
* opcode tokens, false otherwise.
*/
bool
HasOpCodes
(
const
boost
::
unordered_set
<
OpCode
>
&
rOpCodes
)
const
;
bool
HasOpCodes
(
const
unordered_opcode_set
&
rOpCodes
)
const
;
FormulaToken
**
GetArray
()
const
{
return
pCode
;
}
FormulaToken
**
GetCode
()
const
{
return
pRPN
;
}
...
...
sc/inc/pch/precompiled_sc.hxx
Dosyayı görüntüle @
dfeb898b
...
...
@@ -53,8 +53,6 @@
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/static_assert.hpp>
#include <boost/unordered_map.hpp>
#include <boost/unordered_set.hpp>
#include <cassert>
#include <climits>
#include <cmath>
...
...
@@ -898,6 +896,8 @@
#include <ucbhelper/content.hxx>
#include <ucbhelper/simpleinteractionrequest.hxx>
#include <unicode/uchar.h>
#include <unordered_map>
#include <unordered_set>
#include <unotools/accessiblerelationsethelper.hxx>
#include <unotools/accessiblestatesethelper.hxx>
#include <unotools/bootstrap.hxx>
...
...
sc/source/core/data/column4.cxx
Dosyayı görüntüle @
dfeb898b
...
...
@@ -711,13 +711,13 @@ namespace {
class
RecompileByOpcodeHandler
{
ScDocument
*
mpDoc
;
const
boost
::
unordered_set
<
OpCode
>
&
mrOps
;
const
formula
::
unordered_opcode_set
&
mrOps
;
sc
::
EndListeningContext
&
mrEndListenCxt
;
sc
::
CompileFormulaContext
&
mrCompileFormulaCxt
;
public
:
RecompileByOpcodeHandler
(
ScDocument
*
pDoc
,
const
boost
::
unordered_set
<
OpCode
>
&
rOps
,
ScDocument
*
pDoc
,
const
formula
::
unordered_opcode_set
&
rOps
,
sc
::
EndListeningContext
&
rEndListenCxt
,
sc
::
CompileFormulaContext
&
rCompileCxt
)
:
mpDoc
(
pDoc
),
mrOps
(
rOps
),
...
...
@@ -849,7 +849,7 @@ void ScColumn::PreprocessRangeNameUpdate(
// Collect all formula groups.
std
::
vector
<
sc
::
FormulaGroupEntry
>
aGroups
=
GetFormulaGroupEntries
();
boost
::
unordered_set
<
OpCode
>
aOps
;
formula
::
unordered_opcode_set
aOps
;
aOps
.
insert
(
ocBad
);
aOps
.
insert
(
ocColRowName
);
aOps
.
insert
(
ocName
);
...
...
@@ -863,7 +863,7 @@ void ScColumn::PreprocessDBDataUpdate(
// Collect all formula groups.
std
::
vector
<
sc
::
FormulaGroupEntry
>
aGroups
=
GetFormulaGroupEntries
();
boost
::
unordered_set
<
OpCode
>
aOps
;
formula
::
unordered_opcode_set
aOps
;
aOps
.
insert
(
ocBad
);
aOps
.
insert
(
ocColRowName
);
aOps
.
insert
(
ocDBArea
);
...
...
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