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
80e977a3
Kaydet (Commit)
80e977a3
authored
Ara 24, 2011
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
std::map* -> std::map
üst
93d3f625
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
svxacorr.hxx
editeng/inc/editeng/svxacorr.hxx
+1
-1
svxacorr.cxx
editeng/source/misc/svxacorr.cxx
+5
-8
No files found.
editeng/inc/editeng/svxacorr.hxx
Dosyayı görüntüle @
80e977a3
...
@@ -209,7 +209,7 @@ class EDITENG_DLLPUBLIC SvxAutoCorrect
...
@@ -209,7 +209,7 @@ class EDITENG_DLLPUBLIC SvxAutoCorrect
// all languages in a table
// all languages in a table
SvxAutoCorrLanguageTable_Impl
*
pLangTable
;
SvxAutoCorrLanguageTable_Impl
*
pLangTable
;
std
::
map
<
LanguageType
,
long
>
*
p
LastFileTable
;
std
::
map
<
LanguageType
,
long
>
a
LastFileTable
;
CharClass
*
pCharClass
;
CharClass
*
pCharClass
;
bool
bRunNext
;
bool
bRunNext
;
...
...
editeng/source/misc/svxacorr.cxx
Dosyayı görüntüle @
80e977a3
...
@@ -342,7 +342,6 @@ SvxAutoCorrect::SvxAutoCorrect( const String& rShareAutocorrFile,
...
@@ -342,7 +342,6 @@ SvxAutoCorrect::SvxAutoCorrect( const String& rShareAutocorrFile,
:
sShareAutoCorrFile
(
rShareAutocorrFile
),
:
sShareAutoCorrFile
(
rShareAutocorrFile
),
sUserAutoCorrFile
(
rUserAutocorrFile
),
sUserAutoCorrFile
(
rUserAutocorrFile
),
pLangTable
(
new
SvxAutoCorrLanguageTable_Impl
),
pLangTable
(
new
SvxAutoCorrLanguageTable_Impl
),
pLastFileTable
(
new
std
::
map
<
LanguageType
,
long
>
),
pCharClass
(
0
),
bRunNext
(
false
),
pCharClass
(
0
),
bRunNext
(
false
),
cStartDQuote
(
0
),
cEndDQuote
(
0
),
cStartSQuote
(
0
),
cEndSQuote
(
0
)
cStartDQuote
(
0
),
cEndDQuote
(
0
),
cStartSQuote
(
0
),
cEndSQuote
(
0
)
{
{
...
@@ -359,7 +358,6 @@ SvxAutoCorrect::SvxAutoCorrect( const SvxAutoCorrect& rCpy )
...
@@ -359,7 +358,6 @@ SvxAutoCorrect::SvxAutoCorrect( const SvxAutoCorrect& rCpy )
aSwFlags
(
rCpy
.
aSwFlags
),
aSwFlags
(
rCpy
.
aSwFlags
),
pLangTable
(
new
SvxAutoCorrLanguageTable_Impl
),
pLangTable
(
new
SvxAutoCorrLanguageTable_Impl
),
pLastFileTable
(
new
std
::
map
<
LanguageType
,
long
>
),
pCharClass
(
0
),
bRunNext
(
false
),
pCharClass
(
0
),
bRunNext
(
false
),
nFlags
(
rCpy
.
nFlags
&
~
(
ChgWordLstLoad
|
CplSttLstLoad
|
WrdSttLstLoad
)),
nFlags
(
rCpy
.
nFlags
&
~
(
ChgWordLstLoad
|
CplSttLstLoad
|
WrdSttLstLoad
)),
...
@@ -374,7 +372,6 @@ SvxAutoCorrect::~SvxAutoCorrect()
...
@@ -374,7 +372,6 @@ SvxAutoCorrect::~SvxAutoCorrect()
{
{
lcl_ClearTable
(
*
pLangTable
);
lcl_ClearTable
(
*
pLangTable
);
delete
pLangTable
;
delete
pLangTable
;
delete
pLastFileTable
;
delete
pCharClass
;
delete
pCharClass
;
}
}
...
@@ -1616,8 +1613,8 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
...
@@ -1616,8 +1613,8 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
Time
nMinTime
(
0
,
2
),
nAktTime
(
Time
::
SYSTEM
),
nLastCheckTime
(
Time
::
EMPTY
);
Time
nMinTime
(
0
,
2
),
nAktTime
(
Time
::
SYSTEM
),
nLastCheckTime
(
Time
::
EMPTY
);
std
::
map
<
LanguageType
,
long
>::
iterator
nFndPos
=
pLastFileTable
->
find
(
eLang
);
std
::
map
<
LanguageType
,
long
>::
iterator
nFndPos
=
aLastFileTable
.
find
(
eLang
);
if
(
nFndPos
!=
pLastFileTable
->
end
()
&&
if
(
nFndPos
!=
aLastFileTable
.
end
()
&&
(
nLastCheckTime
.
SetTime
(
nFndPos
->
second
),
nLastCheckTime
<
nAktTime
)
&&
(
nLastCheckTime
.
SetTime
(
nFndPos
->
second
),
nLastCheckTime
<
nAktTime
)
&&
nAktTime
-
nLastCheckTime
<
nMinTime
)
nAktTime
-
nLastCheckTime
<
nMinTime
)
{
{
...
@@ -1629,7 +1626,7 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
...
@@ -1629,7 +1626,7 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
pLists
=
new
SvxAutoCorrectLanguageLists
(
*
this
,
sShareDirFile
,
pLists
=
new
SvxAutoCorrectLanguageLists
(
*
this
,
sShareDirFile
,
sUserDirFile
,
eLang
);
sUserDirFile
,
eLang
);
pLangTable
->
Insert
(
sal_uLong
(
eLang
),
pLists
);
pLangTable
->
Insert
(
sal_uLong
(
eLang
),
pLists
);
pLastFileTable
->
erase
(
nFndPos
);
aLastFileTable
.
erase
(
nFndPos
);
}
}
}
}
else
if
(
(
FStatHelper
::
IsDocument
(
sUserDirFile
)
||
else
if
(
(
FStatHelper
::
IsDocument
(
sUserDirFile
)
||
...
@@ -1640,11 +1637,11 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
...
@@ -1640,11 +1637,11 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
pLists
=
new
SvxAutoCorrectLanguageLists
(
*
this
,
sShareDirFile
,
pLists
=
new
SvxAutoCorrectLanguageLists
(
*
this
,
sShareDirFile
,
sUserDirFile
,
eLang
);
sUserDirFile
,
eLang
);
pLangTable
->
Insert
(
sal_uLong
(
eLang
),
pLists
);
pLangTable
->
Insert
(
sal_uLong
(
eLang
),
pLists
);
pLastFileTable
->
erase
(
nFndPos
);
aLastFileTable
.
erase
(
nFndPos
);
}
}
else
if
(
!
bNewFile
)
else
if
(
!
bNewFile
)
{
{
(
*
pLastFileTable
)
[
eLang
]
=
nAktTime
.
GetTime
();
aLastFileTable
[
eLang
]
=
nAktTime
.
GetTime
();
}
}
return
pLists
!=
0
;
return
pLists
!=
0
;
}
}
...
...
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