summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/inethist.cxx12
-rw-r--r--svl/source/numbers/zformat.cxx9
2 files changed, 3 insertions, 18 deletions
diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx
index c4d5daeea374..7c05b6ef423e 100644
--- a/svl/source/misc/inethist.cxx
+++ b/svl/source/misc/inethist.cxx
@@ -276,16 +276,8 @@ bool INetURLHistory_Impl::queryUrl (const OUString &rUrl) const
{
sal_uInt32 h = crc32 (rUrl);
sal_uInt16 k = find (h);
- if ((k < capacity()) && (m_pHash[k] == h))
- {
- // Cache hit.
- return true;
- }
- else
- {
- // Cache miss.
- return false;
- }
+ // true if cache hit
+ return (k < capacity()) && (m_pHash[k] == h);
}
/*
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 077baa7ab2e5..a817d8d191c1 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -4212,14 +4212,7 @@ bool SvNumberformat::ImpGetNumberOutput(double fNumber,
bool bSign;
if (fNumber < 0.0)
{
- if (nIx == 0) // Not in the ones at the back
- {
- bSign = true; // Formats
- }
- else
- {
- bSign = false;
- }
+ bSign = (nIx == 0); // Not in the ones at the back;
fNumber = -fNumber;
}
else