diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-27 15:08:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-28 11:21:17 +0000 |
commit | 48a8d6d8434908690bc2a51d27f1051bd550c9b0 (patch) | |
tree | 066f8fc9753bdba62f87f205baface6e729857bf /svl | |
parent | f7d6f3e4e3fda3cd4936880918e2831246634a3e (diff) |
loplugin:singlevalfields in various
Change-Id: Ia0d8f463a4dba9ec63aa0159441e3e607dd3bf5e
Reviewed-on: https://gerrit.libreoffice.org/26738
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/inethist.cxx | 4 | ||||
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 18 | ||||
-rw-r--r-- | svl/source/numbers/zforfind.hxx | 1 |
3 files changed, 0 insertions, 23 deletions
diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index 8db4ac91144f..4fe327f6830b 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -48,7 +48,6 @@ class INetURLHistory_Impl */ sal_uInt32 m_nMagic; sal_uInt16 m_nNext; - sal_uInt16 m_nMBZ; /** Initialization. */ @@ -56,7 +55,6 @@ class INetURLHistory_Impl { m_nMagic = INETHIST_MAGIC_HEAD; m_nNext = 0; - m_nMBZ = 0; } }; @@ -66,7 +64,6 @@ class INetURLHistory_Impl */ sal_uInt32 m_nHash; sal_uInt16 m_nLru; - sal_uInt16 m_nMBZ; /** Initialization. */ @@ -74,7 +71,6 @@ class INetURLHistory_Impl { m_nHash = 0; m_nLru = nLru; - m_nMBZ = 0; } /** Comparison. diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index b2ad644f1072..e446d73bcb24 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -127,7 +127,6 @@ void ImpSvNumberInputScan::Reset() nStringScanSign = 0; nMatchedAllStrings = nMatchedVirgin; nMayBeIso8601 = 0; - nTimezonePos = 0; nMayBeMonthDate = 0; nAcceptedDatePattern = -2; nDatePatternStart = 0; @@ -919,23 +918,6 @@ bool ImpSvNumberInputScan::GetTimeRef( double& fOutNumber, double fSecond100 = 0.0; sal_uInt16 nStartIndex = nIndex; - if (nTimezonePos) - { - // find first timezone number index and adjust count - for (sal_uInt16 j=0; j<nAnzNums; ++j) - { - if (nNums[j] == nTimezonePos) - { - // nAnz is not total count, but count of time relevant strings. - if (nStartIndex < j && j - nStartIndex < nAnz) - { - nAnz = j - nStartIndex; - } - break; // for - } - } - } - if (nDecPos == 2 && (nAnz == 3 || nAnz == 2)) // 20:45.5 or 45.5 { nHour = 0; diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx index 5d940a3277df..7cabce77cf2a 100644 --- a/svl/source/numbers/zforfind.hxx +++ b/svl/source/numbers/zforfind.hxx @@ -128,7 +128,6 @@ private: // default 18 // number <= nYear2000 => 20xx // number > nYear2000 => 19xx - sal_uInt16 nTimezonePos; // Index of timezone separator (+1) /** State of ISO 8601 detection. |