diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-21 11:59:05 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-21 11:59:05 +0400 |
commit | 7b2f02697a49724f280eb31255900e4626b5e12b (patch) | |
tree | 898c49a2417bbbe60f9615b7c33bec6f1dae27cb /src/filters/parser/BaseSplitter | |
parent | 362bbc61eeaf9a02191d0cbd9f314ddb8d03923d (diff) |
avoid variable shadowing (/analyze C6246)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5211 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/BaseSplitter')
-rw-r--r-- | src/filters/parser/BaseSplitter/AsyncReader.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/filters/parser/BaseSplitter/AsyncReader.cpp b/src/filters/parser/BaseSplitter/AsyncReader.cpp index 7ae1455af..10339667c 100644 --- a/src/filters/parser/BaseSplitter/AsyncReader.cpp +++ b/src/filters/parser/BaseSplitter/AsyncReader.cpp @@ -100,13 +100,13 @@ STDMETHODIMP CAsyncFileReader::SyncRead(LONGLONG llPosition, LONG lLength, BYTE* CString fn = m_strFileName;
try {
Close();
- } catch (CFileException* e) {
- e->Delete();
+ } catch (CFileException* fe) {
+ fe->Delete();
}
try {
Open(fn, modeRead | shareDenyNone | typeBinary | osSequentialScan);
- } catch (CFileException* e) {
- e->Delete();
+ } catch (CFileException* fe) {
+ fe->Delete();
}
m_strFileName = fn;
}
@@ -213,9 +213,9 @@ DWORD CAsyncUrlReader::ThreadProc() Reply(S_OK);
while (!CheckRequest(&cmd)) {
- int len = fin->Read(buff, sizeof(buff));
- if (len > 0) {
- fout.Write(buff, len);
+ int len2 = fin->Read(buff, sizeof(buff));
+ if (len2 > 0) {
+ fout.Write(buff, len2);
}
}
} else {
|