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
84a67586
Kaydet (Commit)
84a67586
authored
Nis 21, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwFieldType
Change-Id: Ib07a3c15cb48998d0acb5bfae4e902a2d729b648
üst
7d42346b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
fldbas.hxx
sw/inc/fldbas.hxx
+3
-3
fldbas.cxx
sw/source/core/fields/fldbas.cxx
+6
-6
fldmgr.cxx
sw/source/uibase/fldui/fldmgr.cxx
+3
-3
initui.cxx
sw/source/uibase/utlui/initui.cxx
+1
-1
No files found.
sw/inc/fldbas.hxx
Dosyayı görüntüle @
84a67586
...
...
@@ -237,10 +237,10 @@ class SW_DLLPUBLIC SwFieldType : public SwModify
::
com
::
sun
::
star
::
uno
::
WeakReference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
m_wXFieldMaster
;
sal_uInt16
nWhich
;
sal_uInt16
m_
nWhich
;
friend
void
_FinitUI
();
///< In order to delete pointer!
static
std
::
vector
<
OUString
>*
pFldNames
;
static
std
::
vector
<
OUString
>*
s_
pFldNames
;
static
void
_GetFldName
();
///< Sets up FldNames; fldmgr.cxx!
...
...
@@ -265,7 +265,7 @@ public:
virtual
bool
QueryValue
(
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt16
nWhich
)
const
;
virtual
bool
PutValue
(
const
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt16
nWhich
);
sal_uInt16
Which
()
const
{
return
nWhich
;
}
sal_uInt16
Which
()
const
{
return
m_
nWhich
;
}
inline
void
UpdateFlds
()
const
;
};
...
...
sw/source/core/fields/fldbas.cxx
Dosyayı görüntüle @
84a67586
...
...
@@ -73,7 +73,7 @@ static sal_uInt16 lcl_GetLanguageOfFormat( sal_uInt16 nLng, sal_uLong nFmt,
// Globals
/// field names
std
::
vector
<
OUString
>*
SwFieldType
::
pFldNames
=
0
;
std
::
vector
<
OUString
>*
SwFieldType
::
s_pFldNames
=
nullptr
;
namespace
{
...
...
@@ -125,18 +125,18 @@ namespace
OUString
SwFieldType
::
GetTypeStr
(
sal_uInt16
nTypeId
)
{
if
(
!
pFldNames
)
if
(
!
s_pFldNames
)
_GetFldName
();
if
(
nTypeId
<
SwFieldType
::
pFldNames
->
size
()
)
return
(
*
SwFieldType
::
pFldNames
)[
nTypeId
];
if
(
nTypeId
<
SwFieldType
::
s_pFldNames
->
size
()
)
return
(
*
SwFieldType
::
s_
pFldNames
)[
nTypeId
];
return
OUString
();
}
// each field refences a field type that is unique for each document
SwFieldType
::
SwFieldType
(
sal_uInt16
nWhichId
)
:
SwModify
(
0
),
nWhich
(
nWhichId
)
:
SwModify
(
nullptr
)
,
m_nWhich
(
nWhichId
)
{
}
...
...
sw/source/uibase/fldui/fldmgr.cxx
Dosyayı görüntüle @
84a67586
...
...
@@ -1604,12 +1604,12 @@ void SwFieldType::_GetFldName()
};
// insert infos for fields
SwFieldType
::
pFldNames
=
new
std
::
vector
<
OUString
>
;
SwFieldType
::
pFldNames
->
reserve
(
SAL_N_ELEMENTS
(
coFldNms
));
SwFieldType
::
s_
pFldNames
=
new
std
::
vector
<
OUString
>
;
SwFieldType
::
s_
pFldNames
->
reserve
(
SAL_N_ELEMENTS
(
coFldNms
));
for
(
sal_uInt16
nIdx
=
0
;
nIdx
<
SAL_N_ELEMENTS
(
coFldNms
);
++
nIdx
)
{
const
OUString
aTmp
(
SW_RES
(
coFldNms
[
nIdx
]
));
SwFieldType
::
pFldNames
->
push_back
(
MnemonicGenerator
::
EraseAllMnemonicChars
(
aTmp
));
SwFieldType
::
s_
pFldNames
->
push_back
(
MnemonicGenerator
::
EraseAllMnemonicChars
(
aTmp
));
}
}
...
...
sw/source/uibase/utlui/initui.cxx
Dosyayı görüntüle @
84a67586
...
...
@@ -155,7 +155,7 @@ void _FinitUI()
DELETEZ
(
pGlossaries
);
delete
SwFieldType
::
pFldNames
;
delete
SwFieldType
::
s_
pFldNames
;
ClearStringCache
();
delete
pGlossaryList
;
...
...
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