diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-10 14:57:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-11 09:59:10 +0100 |
commit | 0473296bd9a71b81c6aa9638d8a231ace503dbb8 (patch) | |
tree | 134bd650472069247760f7841a6f9efa032ef362 /editeng/source/misc | |
parent | b18e1e705148348392632596ec686206ec213019 (diff) |
nCurrentDataFilesChangedCheckValue is kind of pointless
Change-Id: Ibded6b0a72c9501d35fb884c93c505a2f716f678
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/unolingu.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx index d9cc031c89f9..da2fac53cefb 100644 --- a/editeng/source/misc/unolingu.cxx +++ b/editeng/source/misc/unolingu.cxx @@ -208,7 +208,6 @@ Sequence< OUString > lcl_MergeSeq( } sal_Int16 SvxLinguConfigUpdate::nNeedUpdating = -1; -sal_Int32 SvxLinguConfigUpdate::nCurrentDataFilesChangedCheckValue = -1; void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck ) { @@ -341,7 +340,6 @@ void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck ) } } } - OSL_ENSURE( nCurrentDataFilesChangedCheckValue != -1, "SvxLinguConfigUpdate::UpdateAll DataFilesChangedCheckValue not yet calculated!" ); Any aAny; // for the time being (developer builds until OOo 3.0) @@ -352,7 +350,6 @@ void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck ) // Since the check is on-demand occuring and executed once it should // not be too troublesome. // In OOo 3.0 we will not need the respective code anymore at all. -// aAny <<= nCurrentDataFilesChangedCheckValue; aAny <<= (sal_Int32) -1; // keep the value set to 'need to check' aCfg.SetProperty( A2OU( "DataFilesChangedCheckValue" ), aAny ); @@ -386,7 +383,7 @@ sal_Bool SvxLinguConfigUpdate::IsNeedUpdateAll( sal_Bool bForceCheck ) if (nNeedUpdating == -1 || bForceCheck ) // need to check if updating is necessary { // calculate hash value for current data files - nCurrentDataFilesChangedCheckValue = CalcDataFilesChangedCheckValue(); + sal_Int32 nCurrentDataFilesChangedCheckValue = CalcDataFilesChangedCheckValue(); // compare hash value and check value to see if anything has changed // and thus the configuration needs to be updated |