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
b24e3a60
Kaydet (Commit)
b24e3a60
authored
Agu 16, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
differentiated warning for symbol/AddIn pair insertion, fdo#59727
Change-Id: I371bca810c40d4cfab0b9fcd47a070b4e68ee768
üst
78c995a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
FormulaCompiler.cxx
formula/source/core/api/FormulaCompiler.cxx
+10
-1
No files found.
formula/source/core/api/FormulaCompiler.cxx
Dosyayı görüntüle @
b24e3a60
...
...
@@ -253,10 +253,19 @@ const sal_Unicode* lcl_UnicodeStrChr( const sal_Unicode* pStr,sal_Unicode c )
void
FormulaCompiler
::
OpCodeMap
::
putExternal
(
const
String
&
rSymbol
,
const
String
&
rAddIn
)
{
// Different symbols may map to the same AddIn, but the same AddIn may not
// map to different symbols, the first pair wins. Same symbol of course may
// not map to different AddIns, again the first pair wins and also the
// AddIn->symbol mapping is not inserted in other cases.
bool
bOk
=
mpExternalHashMap
->
insert
(
ExternalHashMap
::
value_type
(
rSymbol
,
rAddIn
)).
second
;
SAL_WARN_IF
(
!
bOk
,
"formula.core"
,
"OpCodeMap::putExternal: symbol not inserted, "
<<
rSymbol
<<
" -> "
<<
rAddIn
);
if
(
bOk
)
{
bOk
=
mpReverseExternalHashMap
->
insert
(
ExternalHashMap
::
value_type
(
rAddIn
,
rSymbol
)).
second
;
DBG_ASSERT
(
bOk
,
"OpCodeMap::putExternal: symbol not inserted"
);
// Failed insertion of the AddIn is ok for different symbols mapping to
// the same AddIn. Make this INFO only.
SAL_INFO_IF
(
!
bOk
,
"formula.core"
,
"OpCodeMap::putExternal: AddIn not inserted, "
<<
rAddIn
<<
" -> "
<<
rSymbol
);
}
}
void
FormulaCompiler
::
OpCodeMap
::
putExternalSoftly
(
const
String
&
rSymbol
,
const
String
&
rAddIn
)
...
...
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