diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 11:17:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 16:29:15 +0100 |
commit | daa6898578ec72faa406bfe08977f7d748610716 (patch) | |
tree | e75b8a538e8fe94882e84e87131d53840ecf7cc6 /basic | |
parent | 4079089d0a3cf6b55c937447407f68b7339bca68 (diff) |
clang: Dead initialization
Change-Id: Ieae5303e55f21044ef8e91e63c4896696cfad51c
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/methods1.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index d45e534439c2..a4e16229a0db 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -2337,7 +2337,6 @@ double implGetDateOfFirstDayInFirstWeek double dBaseDate; implDateSerial( nYear, 1, 1, dBaseDate ); - double dRetDate = dBaseDate; sal_Int16 nWeekDay0101 = implGetWeekDay( dBaseDate ); sal_Int16 nDayDiff = nWeekDay0101 - nFirstDay; @@ -2350,7 +2349,7 @@ double implGetDateOfFirstDayInFirstWeek if( nThisWeeksDaysInYearCount < nFirstWeekMinDays ) nDayDiff -= 7; } - dRetDate = dBaseDate - nDayDiff; + double dRetDate = dBaseDate - nDayDiff; return dRetDate; } |