Kaydet (Commit) 4586a3f5 authored tarafından Noel Grandin's avatar Noel Grandin

cid#1242749 Unused value

Change-Id: I3227a05a4cafdcca23c32a62fdb72245cdf493d6
üst cc81115c
...@@ -463,7 +463,6 @@ static bool lcl_parseExternalName( ...@@ -463,7 +463,6 @@ static bool lcl_parseExternalName(
const sal_Unicode* const pStart = rSymbol.getStr(); const sal_Unicode* const pStart = rSymbol.getStr();
const sal_Unicode* p = pStart; const sal_Unicode* p = pStart;
sal_Int32 nLen = rSymbol.getLength(); sal_Int32 nLen = rSymbol.getLength();
sal_Unicode cPrev = 0;
OUString aTmpFile, aTmpName; OUString aTmpFile, aTmpName;
sal_Int32 i = 0; sal_Int32 i = 0;
bool bInName = false; bool bInName = false;
...@@ -479,7 +478,6 @@ static bool lcl_parseExternalName( ...@@ -479,7 +478,6 @@ static bool lcl_parseExternalName(
if (!p || p == pStart) if (!p || p == pStart)
return false; return false;
i = sal_Int32(p - pStart); i = sal_Int32(p - pStart);
cPrev = *(p-1);
} }
for ( ; i < nLen; ++i, ++p) for ( ; i < nLen; ++i, ++p)
{ {
...@@ -493,7 +491,7 @@ static bool lcl_parseExternalName( ...@@ -493,7 +491,7 @@ static bool lcl_parseExternalName(
{ {
// Move to the next char and loop until the second single // Move to the next char and loop until the second single
// quote. // quote.
cPrev = c; sal_Unicode cPrev = c;
++i; ++p; ++i; ++p;
for (sal_Int32 j = i; j < nLen; ++j, ++p) for (sal_Int32 j = i; j < nLen; ++j, ++p)
{ {
...@@ -547,7 +545,6 @@ static bool lcl_parseExternalName( ...@@ -547,7 +545,6 @@ static bool lcl_parseExternalName(
return false; return false;
} }
cPrev = c;
continue; continue;
} }
} }
...@@ -599,7 +596,6 @@ static bool lcl_parseExternalName( ...@@ -599,7 +596,6 @@ static bool lcl_parseExternalName(
aTmpFile += OUString(c); aTmpFile += OUString(c);
} }
} }
cPrev = c;
} }
if (!bInName) if (!bInName)
......
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