Kaydet (Commit) 7fe61368 authored tarafından Caolán McNamara's avatar Caolán McNamara

CalcDataFilesChangedCheckValue is always zero

Change-Id: I851c0ac078b57f07e0a58a9fb2119d11cc5048e5
üst 0473296b
......@@ -59,8 +59,6 @@ class SvxLinguConfigUpdate
// n == 0 => already updated, nothing to be done
// n == 1 => needs to be updated
static sal_Int32 CalcDataFilesChangedCheckValue();
public:
EDITENG_DLLPUBLIC static void UpdateAll( sal_Bool bForceCheck = sal_False );
......
......@@ -367,23 +367,13 @@ void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck )
}
sal_Int32 SvxLinguConfigUpdate::CalcDataFilesChangedCheckValue()
{
RTL_LOGFILE_CONTEXT( aLog, "svx: SvxLinguConfigUpdate::CalcDataFilesChangedCheckValue" );
sal_Int32 nHashVal = 0;
// nothing to be checked anymore since those old directory paths are gone by now
return nHashVal;
}
sal_Bool SvxLinguConfigUpdate::IsNeedUpdateAll( sal_Bool bForceCheck )
{
RTL_LOGFILE_CONTEXT( aLog, "svx: SvxLinguConfigUpdate::IsNeedUpdateAll" );
if (nNeedUpdating == -1 || bForceCheck ) // need to check if updating is necessary
{
// calculate hash value for current data files
sal_Int32 nCurrentDataFilesChangedCheckValue = CalcDataFilesChangedCheckValue();
sal_Int32 nCurrentDataFilesChangedCheckValue = 0;
// compare hash value and check value to see if anything has changed
// and thus the configuration needs to be updated
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment