diff options
author | Aron Budea <aron.budea@collabora.com> | 2017-06-30 23:57:35 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-07-03 17:09:47 +0200 |
commit | 89d56ad70a5b43509d647d89d0cd12e481642954 (patch) | |
tree | 8e4946611c1e5994f2b090948b2e636478dbad51 /editeng | |
parent | 1e812fbaefb0a273c236ff1917df2b5dcad4e653 (diff) |
tdf#108622: use correct type for last check timestamp during autocorrect
It's only supposed to check the files once every 2-mins, with
mismatching type that happens each time.
Reviewed-on: https://gerrit.libreoffice.org/39428
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 51f616ddd7a2e3310e1b30dbd73d90e5138980ea)
Change-Id: Ie9243cf928d952e28989dd981508de86cb7dbddb
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index f9f701be04ae..27d721f2ab48 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1564,7 +1564,7 @@ bool SvxAutoCorrect::CreateLanguageFile( const LanguageTag& rLanguageTag, bool b tools::Time nMinTime( 0, 2 ), nAktTime( tools::Time::SYSTEM ), nLastCheckTime( tools::Time::EMPTY ); - std::map<LanguageTag, long>::iterator nFndPos = aLastFileTable.find(rLanguageTag); + auto nFndPos = aLastFileTable.find(rLanguageTag); if(nFndPos != aLastFileTable.end() && (nLastCheckTime.SetTime(nFndPos->second), nLastCheckTime < nAktTime) && nAktTime - nLastCheckTime < nMinTime) |