]> git.saurik.com Git - wxWidgets.git/commitdiff
don't shadow declaration of nIndex variable
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 21 Sep 2007 10:54:21 +0000 (10:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 21 Sep 2007 10:54:21 +0000 (10:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index 1a249e06112c87b9fab0e40e0cc43d76ceb5aa6b..e85d76f28e95ac87a5dbbb3c5a5543eedafd93a9 100644 (file)
@@ -1003,7 +1003,7 @@ void wxMimeTypesManagerImpl::LoadKDEApp(const wxString& filename)
     wxStringTokenizer tokenizer(mimetypes, _T(";"));
     while(tokenizer.HasMoreTokens()) {
         wxString mimetype = tokenizer.GetNextToken().Lower();
-        int nIndex = m_aTypes.Index(mimetype);
+        nIndex = m_aTypes.Index(mimetype);
         if(nIndex != wxNOT_FOUND) { // is this a known MIME type?
             wxMimeTypeCommands* entry = m_aEntries[nIndex];
             entry->AddOrReplaceVerb(wxT("open"), sCmd);