summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 12:34:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 12:49:44 +0200
commit3be460bbd609041aa03005e8d7bf8f424622a8a9 (patch)
treedd4fc5aadd6b179597d4b8eb15f0df6dd1ace274 /linguistic
parent1d00baff394da0953a1ef1eb6ccd9c4c4995443b (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: Ie8e69d2a39abf6538cf3f8b75b76042ca7b71521
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/dicimp.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index e9820d5a4381..016ecb996986 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -260,13 +260,12 @@ sal_uLong DictionaryNeo::loadEntries(const OUString &rMainURL)
SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xStream ) );
- sal_uLong nErr = sal::static_int_cast< sal_uLong >(-1);
-
// read header
bool bNegativ;
sal_uInt16 nLang;
nDicVersion = ReadDicVersion(pStream, nLang, bNegativ);
- if (0 != (nErr = pStream->GetError()))
+ sal_uLong nErr = pStream->GetError();
+ if (0 != nErr)
return nErr;
nLanguage = nLang;
@@ -440,7 +439,6 @@ sal_uLong DictionaryNeo::saveEntries(const OUString &rURL)
if (!xStream.is())
return static_cast< sal_uLong >(-1);
- sal_uLong nErr = sal::static_int_cast< sal_uLong >(-1);
SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xStream ) );
@@ -448,7 +446,8 @@ sal_uLong DictionaryNeo::saveEntries(const OUString &rURL)
rtl_TextEncoding eEnc = RTL_TEXTENCODING_UTF8;
pStream->WriteLine(OString(pVerOOo7));
- if (0 != (nErr = pStream->GetError()))
+ sal_uLong nErr = pStream->GetError();
+ if (0 != nErr)
return nErr;
/* XXX: the <none> case could be differentiated, is it absence or
* undetermined or multiple? Earlier versions did not know about 'und' and